aboutsummaryrefslogtreecommitdiff
path: root/src/OSC-common.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-19 04:13:27 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-10-19 04:13:27 +0000
commitc856bf200f64502de6dc77d24f96040a4e42c7fe (patch)
tree9edb55bd32efb28fd263decc4f9732b7b48b40a9 /src/OSC-common.h
parentd4feaf4ff76c78862a2bc54851f3ed1f7709bcdb (diff)
fixed up to hopefully build on MinGW gcc 3.4.5 since currently it crashes gcc. I have to say this code is ugly, so its hard to blame gcc. Too many peole just doing quick fixes, and no one caring... I am also guilty as charged. But I did take a moment to remove some warnings
svn path=/trunk/externals/OSCx/; revision=6142
Diffstat (limited to 'src/OSC-common.h')
-rw-r--r--src/OSC-common.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/OSC-common.h b/src/OSC-common.h
index 46c66a9..abea838 100644
--- a/src/OSC-common.h
+++ b/src/OSC-common.h
@@ -48,15 +48,19 @@ typedef int Boolean;
#ifdef _WIN32
#include <stdio.h>
+ #ifdef _DEBUG
+ #define DEBUG
+ #endif
+#endif /* _WIN32 */
+
+/* only needed on Microsoft compilers */
+#ifdef _MSC_VER
#ifdef OSC_EXPORTS
#define OSC_API __declspec(dllexport)
#else
#define OSC_API __declspec(dllimport)
#endif
- #ifdef _DEBUG
- #define DEBUG
- #endif
-#endif
+#endif /* _MSC_VER */
//#define int32_t t_int