summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper_main-win32.cc
diff options
context:
space:
mode:
authorJon <jon.forums@gmail.com>2012-09-20 14:05:11 (GMT)
committerJon <jon.forums@gmail.com>2012-09-20 14:05:11 (GMT)
commit3b3e1c831cc49d8c02928aaad7683c820cce9400 (patch)
tree993c5b27b81e96c041bb9d0ef7a40d84110e0cc9 /src/msvc_helper_main-win32.cc
parente6c8bd91c22b64374aa7a1c84ae0a462f4fe2896 (diff)
downloadNinja-3b3e1c831cc49d8c02928aaad7683c820cce9400.zip
Ninja-3b3e1c831cc49d8c02928aaad7683c820cce9400.tar.gz
Ninja-3b3e1c831cc49d8c02928aaad7683c820cce9400.tar.bz2
Give MinGW builds MSVC build helper superpowers
Note: _WIN32 is used instead of WIN32 to enable builds with MSVC IDE, Windows SDK non-IDE command line tools, and mingw/mingw-w64 based toolchains
Diffstat (limited to 'src/msvc_helper_main-win32.cc')
-rw-r--r--src/msvc_helper_main-win32.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/msvc_helper_main-win32.cc b/src/msvc_helper_main-win32.cc
index ed7674c..4ff14a0 100644
--- a/src/msvc_helper_main-win32.cc
+++ b/src/msvc_helper_main-win32.cc
@@ -16,6 +16,10 @@
#include <windows.h>
+#ifdef __MINGW32__
+#include <stdio.h>
+#endif
+
#include "util.h"
#include "getopt.h"