summaryrefslogtreecommitdiffstats
path: root/src/openjpeg-2-dllmacro.patch
blob: 09b304636a5ebfc351e5739e7e6393f3f22cc133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This file is part of MXE.
# See index.html for further information.
#Author: Julien Michel <julien.michel@orfeo-toolbox.org>
diff -bur openjpeg-2.0.1.orig/src/lib/openjp2/openjpeg.h openjpeg-2.0.1.diff/src/lib/openjp2/openjpeg.h
--- openjpeg-2.0.1.orig/src/lib/openjp2/openjpeg.h	2014-04-22 13:24:20.000000000 +0530
+++ openjpeg-2.0.1.diff/src/lib/openjp2/openjpeg.h	2014-10-07 04:12:01.325229155 +0530
@@ -76,7 +76,8 @@
 	#define OPJ_DEPRECATED(func) func
 #endif
 
-#if defined(OPJ_STATIC) || !defined(_WIN32)
+
+#if defined(OPJ_STATIC) || defined(__MINGW32__) || !defined(_WIN32)
 /* http://gcc.gnu.org/wiki/Visibility */
 #if __GNUC__ >= 4
 #define OPJ_API    __attribute__ ((visibility ("default")))