From 8e7eda21f2f6a61b5b9648d337302cd753b8150e Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Wed, 13 Jun 2012 14:14:22 +0000 Subject: do not apply the __dso_handle patch on Mac OS X git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2904 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/projectM/cwrapper/projectM-cwrapper.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') 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) -- cgit v1.2.3