diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-07-03 11:04:57 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-07-03 11:04:57 +0000 |
commit | 63fd1d42168d43bb315edfcb6ac7b77db41fcd5f (patch) | |
tree | 1074056ad9daac0d323043255aa143721c760a42 /gui | |
parent | 2accab0d836db1fdaf41ffb92cd7ce27467bfebb (diff) |
updated windows macro to automatically defined _WIN32 to smooth Windows building
svn path=/trunk/externals/ggee/; revision=7890
Diffstat (limited to 'gui')
-rwxr-xr-x | gui/state.c | 8 | ||||
-rwxr-xr-x | gui/w_envgen.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/state.c b/gui/state.c index f078612..063b15f 100755 --- a/gui/state.c +++ b/gui/state.c @@ -73,7 +73,7 @@ void state_dosave(t_state *x) t_symbol* dir;
char dirstr[255];
-#ifdef NT
+#ifdef _WIN32
dir = gensym("");
#else
dir = canvas_getdir(x->x_canvas);
@@ -81,7 +81,7 @@ void state_dosave(t_state *x) strcpy(dirstr,dir->s_name);
-#ifndef NT
+#ifndef _WIN32
strcat(dirstr,"/");
#endif
@@ -176,7 +176,7 @@ void state_load(t_state *x) t_symbol* dir;
char dirstr[255];
-#ifdef NT
+#ifdef _WIN32
dir = gensym("");
#else
dir = canvas_getdir(x->x_canvas);
@@ -184,7 +184,7 @@ void state_load(t_state *x) strcpy(dirstr,dir->s_name);
-#ifndef NT
+#ifndef _WIN32
strcat(dirstr,"/");
#endif
diff --git a/gui/w_envgen.h b/gui/w_envgen.h index c7acd81..1cf0081 100755 --- a/gui/w_envgen.h +++ b/gui/w_envgen.h @@ -1,7 +1,7 @@ #include <stdio.h> #include <string.h> #include <math.h> -#ifdef NT +#ifdef _WIN32 #pragma warning( disable : 4244 ) #pragma warning( disable : 4305 ) #define abs fabs |