From 688d7d6d95ee16353a5c0f9a2234fd5faabb2935 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/slv2@3135 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/slv2.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/slv2/slv2.h b/slv2/slv2.h index 0112f16..c367154 100644 --- a/slv2/slv2.h +++ b/slv2/slv2.h @@ -38,30 +38,30 @@ #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" #ifdef SLV2_SHARED - #if defined _WIN32 || defined __CYGWIN__ - #define SLV2_LIB_IMPORT __declspec(dllimport) - #define SLV2_LIB_EXPORT __declspec(dllexport) - #else - #define SLV2_LIB_IMPORT __attribute__ ((visibility("default"))) - #define SLV2_LIB_EXPORT __attribute__ ((visibility("default"))) - #endif - #ifdef SLV2_INTERNAL - #define SLV2_API SLV2_LIB_EXPORT - #else - #define SLV2_API SLV2_LIB_IMPORT - #endif +# ifdef __WIN32__ +# define SLV2_LIB_IMPORT __declspec(dllimport) +# define SLV2_LIB_EXPORT __declspec(dllexport) +# else +# define SLV2_LIB_IMPORT __attribute__((visibility("default"))) +# define SLV2_LIB_EXPORT __attribute__((visibility("default"))) +# endif +# ifdef SLV2_INTERNAL +# define SLV2_API SLV2_LIB_EXPORT +# else +# define SLV2_API SLV2_LIB_IMPORT +# endif #else - #define SLV2_API +# define SLV2_API #endif -#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) - #ifdef SLV2_INTERNAL - #define SLV2_DEPRECATED - #else - #define SLV2_DEPRECATED __attribute__((__deprecated__)) - #endif +#ifdef __GNUC__ +# ifdef SLV2_INTERNAL +# define SLV2_DEPRECATED +# else +# define SLV2_DEPRECATED __attribute__((__deprecated__)) +# endif #else - #define SLV2_DEPRECATED +# define SLV2_DEPRECATED #endif #ifdef __cplusplus -- cgit v1.2.1