Skip to content
Snippets Groups Projects
Commit 49373238 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

Modification pour la complation sous MinGW et Cygwin. (Ajout d'une definition...

Modification pour la complation sous MinGW et Cygwin. (Ajout d'une definition specifique aux 2 plateformes)
parent 546f99fc
No related branches found
No related tags found
No related merge requests found
......@@ -34,15 +34,21 @@
#define OPENJPEG_H
#if defined(OPJ_STATIC) || !(defined(WIN32) || defined(__WIN32__))
//#if (defined(WIN32) || defined(WIN32CE)) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#define OPJ_API
#define OPJ_CALLCONV
#else
#define OPJ_CALLCONV __stdcall
#ifdef OPJ_EXPORTS
#define OPJ_API __declspec(dllexport)
#else
#define OPJ_API __declspec(dllimport)
#endif /* OPJ_EXPORTS */
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#define OPJ_CALLCONV __stdcall
#ifdef OPJ_EXPORTS
#define OPJ_API __declspec(dllexport)
#else
#define OPJ_API __declspec(dllimport)
#endif /* OPJ_EXPORTS */
#else
#define OPJ_API
#define OPJ_CALLCONV
#endif /*!defined(__CYGWIN__) && !defined(__MINGW32__) */
#endif /* !OPJ_STATIC || !WIN32 */
#ifndef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment