summaryrefslogtreecommitdiffstats
path: root/src/openjpeg-1-dllfix.patch
blob: d9ee235b728f2214ca0d3f88ddf7fa50cda014e5 (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.c openjpeg-2.0.1/src/lib/openjp2/openjpeg.c
--- openjpeg-2.0.1.orig/src/lib/openjp2/openjpeg.c	2014-10-15 10:56:09.435396565 +0530
+++ openjpeg-2.0.1/src/lib/openjp2/openjpeg.c	2014-10-15 10:57:18.038964950 +0530
@@ -132,7 +132,7 @@
 #ifdef _WIN32
 #ifndef OPJ_STATIC
 BOOL APIENTRY
-DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
+DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
 
 	OPJ_ARG_NOT_USED(lpReserved);
 	OPJ_ARG_NOT_USED(hModule);