[trunk] allow compilation with MinGW32 (fixes issue 361)
authorAntonin Descampe <antonin@gmail.com>
Tue, 16 Sep 2014 15:38:11 +0000 (15:38 +0000)
committerAntonin Descampe <antonin@gmail.com>
Tue, 16 Sep 2014 15:38:11 +0000 (15:38 +0000)
src/lib/openjp2/openjpeg.c

index 4665d906eb01ea53dd744ed09af473c5da3b5c23..364750c5df4f1707513d402f85ce51755b7c1cf0 100644 (file)
@@ -132,7 +132,7 @@ static OPJ_BOOL opj_seek_from_file (OPJ_OFF_T p_nb_bytes, FILE * p_user_data)
 #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);