ENH: Move to a def solution to avoid polluting header file with declspec

This commit is contained in:
Mathieu Malaterre
2006-01-31 14:20:06 +00:00
parent 72de930d08
commit c5c3ca370e
3 changed files with 34 additions and 20 deletions

View File

@@ -32,19 +32,7 @@
#define OPENJPEG_VERSION "1.0.0"
#if defined(_WIN32) && !defined (OPJ_STATIC)
#ifdef OPJ_SHARED
#define OPJ_EXPORT __declspec(dllexport)
#else
#define OPJ_EXPORT __declspec(dllimport)
#endif
#else
#ifdef OPJ_STATIC
#define OPJ_EXPORT extern
#else
#define OPJ_EXPORT
#endif
#endif
/*
==========================================================