From 7ef0c29f312b04359a27fcb040f54aea610b3594 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 19 Dec 2005 04:11:47 +0000 Subject: 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 --- src/OSC-common.h | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'src/OSC-common.h') 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 - #ifdef OSC_EXPORTS - #define OSC_API __declspec(dllexport) - #else - #define OSC_API __declspec(dllimport) - #endif - #ifdef _DEBUG - #define DEBUG - #endif -#endif - + + +#ifdef _WIN32 + #include + #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 */ + -- cgit v1.2.1