summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-29 20:26:11 +0000
committerDavid Robillard <d@drobilla.net>2011-03-29 20:26:11 +0000
commit443928c063df9cdad1b25b1ee6d3b4fd85faf0d0 (patch)
tree9b51177e5f326a42ffd69a6426cba91efeabf010
parent00e10b80d20d18a0a3a03189ace7f368fe337b5b (diff)
downloadsord-443928c063df9cdad1b25b1ee6d3b4fd85faf0d0.tar.gz
sord-443928c063df9cdad1b25b1ee6d3b4fd85faf0d0.tar.bz2
sord-443928c063df9cdad1b25b1ee6d3b4fd85faf0d0.zip
Update library preprocessor boilerplate
git-svn-id: http://svn.drobilla.net/sord/trunk@74 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--sord/sord.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/sord/sord.h b/sord/sord.h
index e107438..25d6698 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -38,20 +38,20 @@
#include "serd/serd.h"
#ifdef SORD_SHARED
- #if defined _WIN32 || defined __CYGWIN__
- #define SORD_LIB_IMPORT __declspec(dllimport)
- #define SORD_LIB_EXPORT __declspec(dllexport)
- #else
- #define SORD_LIB_IMPORT __attribute__((visibility("default")))
- #define SORD_LIB_EXPORT __attribute__((visibility("default")))
- #endif
- #ifdef SORD_INTERNAL
- #define SORD_API SORD_LIB_EXPORT
- #else
- #define SORD_API SORD_LIB_IMPORT
- #endif
+# ifdef __WIN32__
+# define SORD_LIB_IMPORT __declspec(dllimport)
+# define SORD_LIB_EXPORT __declspec(dllexport)
+# else
+# define SORD_LIB_IMPORT __attribute__((visibility("default")))
+# define SORD_LIB_EXPORT __attribute__((visibility("default")))
+# endif
+# ifdef SORD_INTERNAL
+# define SORD_API SORD_LIB_EXPORT
+# else
+# define SORD_API SORD_LIB_IMPORT
+# endif
#else
- #define SORD_API
+# define SORD_API
#endif
#ifdef __cplusplus