diff options
author | David Robillard <d@drobilla.net> | 2011-03-29 20:25:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-29 20:25:50 +0000 |
commit | 7da7a6510bfb3be3484df87b040c3bb7d3ac5138 (patch) | |
tree | 2ea76cabb7573d33547053d95453506e425dec31 /serd/serd.h | |
parent | 3fe8b258c2224b3d5556f170ee0394afcfdf609a (diff) | |
download | serd-7da7a6510bfb3be3484df87b040c3bb7d3ac5138.tar.gz serd-7da7a6510bfb3be3484df87b040c3bb7d3ac5138.tar.bz2 serd-7da7a6510bfb3be3484df87b040c3bb7d3ac5138.zip |
Update library preprocessor boilerplate
git-svn-id: http://svn.drobilla.net/serd/trunk@135 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/serd/serd.h b/serd/serd.h index c19f9f24..883d420b 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -36,20 +36,20 @@ #include <stdio.h> #ifdef SERD_SHARED - #if defined _WIN32 || defined __CYGWIN__ - #define SERD_LIB_IMPORT __declspec(dllimport) - #define SERD_LIB_EXPORT __declspec(dllexport) - #else - #define SERD_LIB_IMPORT __attribute__ ((visibility("default"))) - #define SERD_LIB_EXPORT __attribute__ ((visibility("default"))) - #endif - #ifdef SERD_INTERNAL - #define SERD_API SERD_LIB_EXPORT - #else - #define SERD_API SERD_LIB_IMPORT - #endif +# ifdef __WIN32__ +# define SERD_LIB_IMPORT __declspec(dllimport) +# define SERD_LIB_EXPORT __declspec(dllexport) +# else +# define SERD_LIB_IMPORT __attribute__((visibility("default"))) +# define SERD_LIB_EXPORT __attribute__((visibility("default"))) +# endif +# ifdef SERD_INTERNAL +# define SERD_API SERD_LIB_EXPORT +# else +# define SERD_API SERD_LIB_IMPORT +# endif #else - #define SERD_API +# define SERD_API #endif #ifdef __cplusplus |