aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/projectM/cwrapper/projectM-cwrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
index 0266c755..1c1c9175 100644
--- a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
+++ b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp
@@ -8,10 +8,12 @@
#define PM_PCM(pm) (PM_CLASS(pm)->pcm)
#endif
-// this is needed if ld is used instead of gcc to link this static
+#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
projectM_ptr projectM_create1(char* config_file)
{