MINGW-packages/mingw-w64-openjpeg2/0006-openjpeg-2.1.0-stdcall-for-all-win.patch
Biswapriyo Nath 7f50b9ab81 openjpeg2: update to 2.5.0
* Remove obsolete cmake build options BUILD_MJ2, BUILD_JPWL and BUILD_JP3D.
* Remove upstream 0001-fix-install-for-dlls.all.patch file.
  commit 07ef7d750b
  commit 23f5eeec20
* Remove 0007-workaround-jp3d-opj_free-link.patch file as jp3d is removed.
* Remove upstrem 0008-cmake-add-install-interface-include-directory.patch file.
  commit 5c2053950e
* Remove hunks for openjp3d, openmj2 and openjpwl directories.
2022-05-14 10:50:19 +05:30

26 lines
668 B
Diff

--- a/src/lib/openjp2/openjpeg.h
+++ b/src/lib/openjp2/openjpeg.h
@@ -76,6 +76,12 @@
#define OPJ_DEPRECATED(func) func
#endif
+#if defined(_ARM_)
+#define OPJ_CALLCONV
+#else
+#define OPJ_CALLCONV __stdcall
+#endif
+
#if defined(OPJ_STATIC) || !defined(_WIN32)
/* http://gcc.gnu.org/wiki/Visibility */
# if !defined(_WIN32) && __GNUC__ >= 4
@@ -89,9 +95,7 @@
# define OPJ_API
# define OPJ_LOCAL
# endif
-# define OPJ_CALLCONV
#else
-# define OPJ_CALLCONV __stdcall
/*
The following ifdef block is the standard way of creating macros which make exporting
from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS