diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-19 04:11:47 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-19 04:11:47 +0000 |
commit | 7ef0c29f312b04359a27fcb040f54aea610b3594 (patch) | |
tree | 998e143c6f071b65b1eabc2b3be177a7bce44faf /src/OSC-common.h | |
parent | 6d196fd8683288fa5f29f6eddd28fb12a0a06c79 (diff) |
fixed up OSC for MinGW, doesn't compile the OSC.dll lib, but the individual objects compile fine
svn path=/trunk/externals/OSCx/; revision=4255
Diffstat (limited to 'src/OSC-common.h')
-rw-r--r-- | src/OSC-common.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/src/OSC-common.h b/src/OSC-common.h index d457686..46c66a9 100644 --- a/src/OSC-common.h +++ b/src/OSC-common.h @@ -34,6 +34,9 @@ The OpenSound Control WWW page is by Matt Wright, 3/13/98 */ +#ifndef _OSC_COMMON_H +#define _OSC_COMMON_H + /* Boolean type */ #ifndef TRUE @@ -41,20 +44,20 @@ typedef int Boolean; #define TRUE 1 #define FALSE 0 #endif -
-
-#ifdef WIN32
- #include <stdio.h>
- #ifdef OSC_EXPORTS
- #define OSC_API __declspec(dllexport)
- #else
- #define OSC_API __declspec(dllimport)
- #endif
- #ifdef _DEBUG
- #define DEBUG
- #endif
-#endif
-
+ + +#ifdef _WIN32 + #include <stdio.h> + #ifdef OSC_EXPORTS + #define OSC_API __declspec(dllexport) + #else + #define OSC_API __declspec(dllimport) + #endif + #ifdef _DEBUG + #define DEBUG + #endif +#endif + //#define int32_t t_int /* Fixed byte width types */ @@ -71,3 +74,7 @@ void OSCProblem(char *s, ...); /* Warning for user */ void OSCWarning(char *s, ...); + + +#endif /* _OSC_COMMON_H */ + |