diff options
Diffstat (limited to 'src/lib/openmj2/openjpeg.h')
| -rw-r--r-- | src/lib/openmj2/openjpeg.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/openmj2/openjpeg.h b/src/lib/openmj2/openjpeg.h index d77df6ca..defed5a3 100644 --- a/src/lib/openmj2/openjpeg.h +++ b/src/lib/openmj2/openjpeg.h @@ -33,7 +33,6 @@ #ifndef OPENJPEG_H #define OPENJPEG_H - /* ========================================================== Compiler directives @@ -41,7 +40,14 @@ */ #if defined(OPJ_STATIC) || !defined(_WIN32) +/* http://gcc.gnu.org/wiki/Visibility */ +#if __GNUC__ >= 4 +#define OPJ_API __attribute__ ((visibility ("default"))) +#define OPJ_LOCAL __attribute__ ((visibility ("hidden"))) +#else #define OPJ_API +#define OPJ_LOCAL +#endif #define OPJ_CALLCONV #else #define OPJ_CALLCONV __stdcall |
