summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-29 20:23:11 +0000
committerDavid Robillard <d@drobilla.net>2011-03-29 20:23:11 +0000
commit688d7d6d95ee16353a5c0f9a2234fd5faabb2935 (patch)
tree61d53fc94e2833e8c6f9a764ee96179ab78593d1 /slv2
parent74807aabb3083e0750efcfb2ee37a7e3d50abb82 (diff)
downloadlilv-688d7d6d95ee16353a5c0f9a2234fd5faabb2935.tar.gz
lilv-688d7d6d95ee16353a5c0f9a2234fd5faabb2935.tar.bz2
lilv-688d7d6d95ee16353a5c0f9a2234fd5faabb2935.zip
Update library preprocessor boilerplate
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3135 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r--slv2/slv2.h40
1 files 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