From ebeb8cb225def551b8cc744d47c1ae21cf8d33a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Mar 2011 20:23:11 +0000 Subject: Update library preprocessor boilerplate git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3135 a436a847-0d15-0410-975c-d299462d15a1 --- suil/suil.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'suil') diff --git a/suil/suil.h b/suil/suil.h index 02a37cd..10cc26e 100644 --- a/suil/suil.h +++ b/suil/suil.h @@ -36,20 +36,20 @@ #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" #ifdef SUIL_SHARED - #if defined _WIN32 || defined __CYGWIN__ - #define SUIL_LIB_IMPORT __declspec(dllimport) - #define SUIL_LIB_EXPORT __declspec(dllexport) - #else - #define SUIL_LIB_IMPORT __attribute__ ((visibility("default"))) - #define SUIL_LIB_EXPORT __attribute__ ((visibility("default"))) - #endif - #ifdef SUIL_INTERNAL - #define SUIL_API SUIL_LIB_EXPORT - #else - #define SUIL_API SUIL_LIB_IMPORT - #endif +# ifdef __WIN32__ +# define SUIL_LIB_IMPORT __declspec(dllimport) +# define SUIL_LIB_EXPORT __declspec(dllexport) +# else +# define SUIL_LIB_IMPORT __attribute__((visibility("default"))) +# define SUIL_LIB_EXPORT __attribute__((visibility("default"))) +# endif +# ifdef SUIL_INTERNAL +# define SUIL_API SUIL_LIB_EXPORT +# else +# define SUIL_API SUIL_LIB_IMPORT +# endif #else - #define SUIL_API +# define SUIL_API #endif #ifdef __cplusplus -- cgit v1.2.1