summaryrefslogtreecommitdiffstats
path: root/src/openjpeg-2-dllmacro.patch
blob: 68a144f27bf175ce42a3bdd1b353a5e7f1e657cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of MXE. See LICENSE.md for licensing 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")))