diff options
| author | Antonin Descampe <antonin@gmail.com> | 2011-03-04 11:21:45 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2011-03-04 11:21:45 +0000 |
| commit | 91bb12c9da3f136c9e42048693ab071cff1f57c6 (patch) | |
| tree | 5e1edd9477c813c3bfa142340e3f6014bcca0bf3 /libjp3dvm | |
| parent | 8e9997315bb834a16bf15472124647c873f65794 (diff) | |
now assume MinGW does not have dirent.h (actually have it but without opendir function). Fixed also a WIN32 check in jp3d/libjp3dvm/openjpeg3d.h.
Diffstat (limited to 'libjp3dvm')
| -rwxr-xr-x | libjp3dvm/openjpeg3d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjp3dvm/openjpeg3d.h b/libjp3dvm/openjpeg3d.h index fdfe2834..e6829d91 100755 --- a/libjp3dvm/openjpeg3d.h +++ b/libjp3dvm/openjpeg3d.h @@ -37,7 +37,7 @@ ==========================================================
*/
-#if defined(OPJ_STATIC) || !(defined(WIN32) || defined(__WIN32__))
+#if defined(OPJ_STATIC) || !defined(_WIN32)
#define OPJ_API
#define OPJ_CALLCONV
#else
@@ -50,7 +50,7 @@ that uses this DLL. This way any other project whose source files include this f OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols
defined with this macro as being exported.
*/
-#ifdef OPJ_EXPORTS
+#if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
#define OPJ_API __declspec(dllexport)
#else
#define OPJ_API __declspec(dllimport)
|
