aboutsummaryrefslogtreecommitdiff
path: root/OSC
diff options
context:
space:
mode:
authorjdl <x75@users.sourceforge.net>2002-10-20 16:01:10 +0000
committerjdl <x75@users.sourceforge.net>2002-10-20 16:01:10 +0000
commit749a6ec63a8f257c2b54511f1d7a5467ea4c38d9 (patch)
treecc19243d19b5a825456ac009b36d0765c4241dc3 /OSC
parent32277d1a5af19be53733fe77949e4efda17cdd7e (diff)
reduce warnings pass #1
svn path=/trunk/externals/OSCx/; revision=179
Diffstat (limited to 'OSC')
-rw-r--r--OSC/OSC-pattern-match.c9
-rw-r--r--OSC/makefile1
-rw-r--r--OSC/routeOSC.c3
-rw-r--r--OSC/sendOSC.c3
4 files changed, 13 insertions, 3 deletions
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 <stdio.h>
+#ifdef UNIX
+ #include <stdio.h>
#endif
+
+// #ifdef MACOSX
+// #include <stdio.h>
+// #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 <stdio.h>
#endif
+#ifdef UNIX
+ #include <stdio.h>
+#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 <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+ #include <ctype.h>
#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;