From 7da7a6510bfb3be3484df87b040c3bb7d3ac5138 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Mar 2011 20:25:50 +0000 Subject: Update library preprocessor boilerplate git-svn-id: http://svn.drobilla.net/serd/trunk@135 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- serd/serd.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'serd') 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 #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 -- cgit v1.2.1