summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codeblocks/chocolate-setup.cbp1
-rw-r--r--setup/execute.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/codeblocks/chocolate-setup.cbp b/codeblocks/chocolate-setup.cbp
index f749d54a..5151c898 100644
--- a/codeblocks/chocolate-setup.cbp
+++ b/codeblocks/chocolate-setup.cbp
@@ -40,6 +40,7 @@
</VirtualTargets>
<Compiler>
<Add option="-Wall" />
+ <Add option="-D_WIN32" />
<Add directory="." />
<Add directory="..\src" />
<Add directory="..\textscreen" />
diff --git a/setup/execute.c b/setup/execute.c
index 800e33b7..1ebd7c55 100644
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -28,7 +28,7 @@
#include <sys/types.h>
-#ifndef WINDOWS
+#ifndef _WIN32
#include <sys/wait.h>
#else
#define WEXITSTATUS(stat_val) ((stat_val) & 255)