diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-01-22 21:40:20 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-01-22 21:40:20 (GMT) |
commit | 9b1c5d5ba78d83eb3977352ce2111d416922c6bb (patch) | |
tree | ec702a0d4e2adfce9f55ae13882bd0d2b9e2520c /src/util.h | |
parent | faac236d26b206cd6a8f4aa6e2bca8a83f0f83fa (diff) | |
download | Ninja-9b1c5d5ba78d83eb3977352ce2111d416922c6bb.zip Ninja-9b1c5d5ba78d83eb3977352ce2111d416922c6bb.tar.gz Ninja-9b1c5d5ba78d83eb3977352ce2111d416922c6bb.tar.bz2 |
only msvc needs these workarounds
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -68,12 +68,14 @@ const char* SpellcheckString(const string& text, ...); /// Removes all Ansi escape codes (http://www.termsys.demon.co.uk/vtansi.htm). string StripAnsiEscapeCodes(const string& in); -#ifdef _WIN32 +#ifdef _MSC_VER #define snprintf _snprintf #define fileno _fileno #define unlink _unlink #define chdir _chdir +#endif +#ifdef _WIN32 /// Convert the value returned by GetLastError() into a string. string GetLastErrorString(); #endif |