summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrances Buontempo <frances.buontempo@gmail.com>2012-01-16 13:53:08 (GMT)
committerFrances Buontempo <frances.buontempo@gmail.com>2012-01-16 13:53:08 (GMT)
commit337d059edc8c9ed6db83d04c7eeb5d38f2595f6c (patch)
treec6b76d777820ddaa78383f066c2df69929876c7f
parent25a3bb074633dc1217f7fd2bc3702d12d20c1761 (diff)
downloadNinja-337d059edc8c9ed6db83d04c7eeb5d38f2595f6c.zip
Ninja-337d059edc8c9ed6db83d04c7eeb5d38f2595f6c.tar.gz
Ninja-337d059edc8c9ed6db83d04c7eeb5d38f2595f6c.tar.bz2
Stop warning about chdir etc which are treated as errors on MSVC with the
current settings
-rw-r--r--src/test.h1
-rw-r--r--src/util.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test.h b/src/test.h
index df544c6..d730151 100644
--- a/src/test.h
+++ b/src/test.h
@@ -19,6 +19,7 @@
#include "disk_interface.h"
#include "state.h"
+#include "util.h"
// Support utilites for tests.
diff --git a/src/util.h b/src/util.h
index 04f0a90..0ae2743 100644
--- a/src/util.h
+++ b/src/util.h
@@ -69,6 +69,7 @@ const char* SpellcheckString(const string& text, ...);
#define snprintf _snprintf
#define fileno _fileno
#define unlink _unlink
+#define chdir _chdir
/// Convert the value returned by GetLastError() into a string.
string GetLastErrorString();