diff -ru openjpeg-1.5.1/libopenjpeg/openjpeg.h patched/libopenjpeg/openjpeg.h
--- openjpeg-1.5.1/libopenjpeg/openjpeg.h 2012-09-13 09:58:39.000000000 +0200
+++ patched/libopenjpeg/openjpeg.h 2013-06-15 11:23:32.370015134 +0200
@@ -44,7 +44,7 @@
#define OPJ_API
#define OPJ_CALLCONV
#else
-#define OPJ_CALLCONV __stdcall
+#define OPJ_CALLCONV __cdecl
/*
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