summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml2
-rw-r--r--src/winmain.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 61cd10744..524ef8b9c 100644
--- a/build.xml
+++ b/build.xml
@@ -480,7 +480,6 @@
stripcommand="${archutil}strip"
objcopycommand="${archutil}objcopy">
<flags>
- -mconsole
-mthreads
</flags>
<fileset dir="${build}">
@@ -536,7 +535,6 @@
stripcommand="${archutil}strip"
objcopycommand="${archutil}objcopy">
<flags>
- -mconsole
-mthreads
</flags>
<fileset dir="${build}">
diff --git a/src/winmain.cpp b/src/winmain.cpp
index 4fde2c574..752ab8e6b 100644
--- a/src/winmain.cpp
+++ b/src/winmain.cpp
@@ -8,6 +8,7 @@
#ifdef G_OS_WIN32
#undef DATADIR
+#include <stdio.h>
#include <io.h>
#include <conio.h>
#define _WIN32_WINNT 0x0501