From 749a6ec63a8f257c2b54511f1d7a5467ea4c38d9 Mon Sep 17 00:00:00 2001 From: jdl Date: Sun, 20 Oct 2002 16:01:10 +0000 Subject: reduce warnings pass #1 svn path=/trunk/externals/OSCx/; revision=179 --- OSC/OSC-pattern-match.c | 9 +++++++-- OSC/makefile | 1 + OSC/routeOSC.c | 3 +++ OSC/sendOSC.c | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) (limited to 'OSC') diff --git a/OSC/OSC-pattern-match.c b/OSC/OSC-pattern-match.c index c3000c1..5e8226d 100644 --- a/OSC/OSC-pattern-match.c +++ b/OSC/OSC-pattern-match.c @@ -35,9 +35,14 @@ The OpenSound Control WWW page is Matt Wright, 3/16/98 Adapted from oscpattern.c, by Matt Wright and Amar Chaudhury */ -#ifdef MACOSX -#include +#ifdef UNIX + #include #endif + +// #ifdef MACOSX +// #include +// #endif + #include "OSC-common.h" #include "OSC-pattern-match.h" diff --git a/OSC/makefile b/OSC/makefile index 515e7a8..346be68 100644 --- a/OSC/makefile +++ b/OSC/makefile @@ -4,6 +4,7 @@ NAME=OSC EXT=o LIBS = -lm -lc LIBOSC = ../libOSC/libOSC.a +DEFS= -Dunix # ----------------------- Mac OS X (Darwin) ----------------------- diff --git a/OSC/routeOSC.c b/OSC/routeOSC.c index 1b3a264..4bd1185 100644 --- a/OSC/routeOSC.c +++ b/OSC/routeOSC.c @@ -61,6 +61,9 @@ The OpenSound Control WWW page is #ifdef MACOSX #include #endif +#ifdef UNIX + #include +#endif /* structure definition of your object */ #define MAX_NUM 20 diff --git a/OSC/sendOSC.c b/OSC/sendOSC.c index 7c0e228..4eb8e99 100644 --- a/OSC/sendOSC.c +++ b/OSC/sendOSC.c @@ -83,6 +83,7 @@ compiling: #include #include #include + #include #endif /////////////////////// @@ -707,7 +708,7 @@ typedArg ParseToken(char *token) { int WriteMessage(OSCbuf *buf, char *messageName, int numArgs, typedArg *args) { int j, returnVal; - const wmERROR = -1; + const int wmERROR = -1; returnVal = 0; -- cgit v1.2.1