aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/projectM/cwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/projectM/cwrapper')
-rw-r--r--src/lib/projectM/cwrapper/projectM-cwrapper.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
index 1c1c9175..8e0c4c84 100644
--- a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
+++ b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
@@ -8,11 +8,13 @@
#define PM_PCM(pm) (PM_CLASS(pm)->pcm)
#endif
-#if (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
-// library (which is the case if the fpc pascal compiler is used).
-// Otherwise compilation fails with "undefined reference to __dso_handle"
-// resolved with gcc 4.6.*
-void *__dso_handle = 0;
+#ifndef __APPLE__
+ #if (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
+ // library (which is the case if the fpc pascal compiler is used).
+ // Otherwise compilation fails with "undefined reference to __dso_handle"
+ // resolved with gcc 4.6.*
+ void *__dso_handle = 0;
+ #endif
#endif
projectM_ptr projectM_create1(char* config_file)