diff options
Diffstat (limited to 'include/pugl/pugl.h')
-rw-r--r-- | include/pugl/pugl.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index f97903e..d5fbdff 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -21,14 +21,16 @@ #include <stddef.h> #include <stdint.h> -#if defined(_WIN32) && !defined(PUGL_STATIC) && defined(PUGL_INTERNAL) -# define PUGL_API __declspec(dllexport) -#elif defined(_WIN32) && !defined(PUGL_STATIC) -# define PUGL_API __declspec(dllimport) -#elif defined(__GNUC__) -# define PUGL_API __attribute__((visibility("default"))) -#else -# define PUGL_API +#ifndef PUGL_API +# if defined(_WIN32) && !defined(PUGL_STATIC) && defined(PUGL_INTERNAL) +# define PUGL_API __declspec(dllexport) +# elif defined(_WIN32) && !defined(PUGL_STATIC) +# define PUGL_API __declspec(dllimport) +# elif defined(__GNUC__) +# define PUGL_API __attribute__((visibility("default"))) +# else +# define PUGL_API +# endif #endif #ifndef PUGL_DISABLE_DEPRECATED |