summaryrefslogtreecommitdiffstats
path: root/contrib/libmp4v2/P00-mingw-static.patch
blob: 268ff7689f619c3297314f11bd653e82f471b8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: mp4v2/include/mp4v2/platform.h
===================================================================
--- mp4v2/include/mp4v2/platform.h	(revision 272)
+++ mp4v2/include/mp4v2/platform.h	(working copy)
@@ -24,8 +24,10 @@
 #if defined( _WIN32 ) || defined( __MINGW32__ )
 #   if defined( _WINDLL ) || defined( DLL_EXPORT )
 #       define MP4V2_EXPORT __declspec(dllexport)
+#   elif defined( _DLL ) || defined( DLL_IMPORT ) 
+#       define MP4V2_EXPORT __declspec(dllimport)
 #   else
-#       define MP4V2_EXPORT __declspec(dllimport)
+#       define MP4V2_EXPORT
 #   endif
 #else
 #   define MP4V2_EXPORT __attribute__((visibility("default")))