]> git.sesse.net Git - mlt/blobdiff - src/mlt++/config.h
Add back automatic cleanup of OpenGL fences.
[mlt] / src / mlt++ / config.h
index 454771e2787b57810478b15553822fa36c7bafc6..4900fe6e5ea6da55eef925c9ab1b174a3135c893 100644 (file)
 #ifndef MLTPP_CONFIG_H_
 #define MLTPP_CONFIG_H_
 
-#if defined(WIN32) && defined(_MSC_VER)
+#if defined(WIN32)
     #ifdef MLTPP_EXPORTS
         #define MLTPP_DECLSPEC __declspec( dllexport )
     #else
         #define MLTPP_DECLSPEC __declspec( dllimport )
     #endif
 #else
-       #define MLTPP_DECLSPEC
+    #if __GNUC__ >= 4
+        #define MLTPP_DECLSPEC __attribute__ ((visibility ("default")))
+    #else
+        #define MLTPP_DECLSPEC
+    #endif
 #endif
 
 #endif