Stop warning about chdir etc which are treated as errors on MSVC with the
authorFrances Buontempo <frances.buontempo@gmail.com>
Mon, 16 Jan 2012 13:53:08 +0000 (13:53 +0000)
committerFrances Buontempo <frances.buontempo@gmail.com>
Mon, 16 Jan 2012 13:53:08 +0000 (13:53 +0000)
current settings

src/test.h
src/util.h

index df544c6..d730151 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "disk_interface.h"
 #include "state.h"
+#include "util.h"
 
 // Support utilites for tests.
 
index 04f0a90..0ae2743 100644 (file)
@@ -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();