summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2013-03-14 15:29:59 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2013-03-14 15:31:10 (GMT)
commitee8431a99d46c19d110853165ce9cbecae862ad0 (patch)
tree56f7eb60616836b960a3312cc709754298fbc212 /src/util.h
parentecc876eb5152c182fc7f3eb768e98936bff9119c (diff)
downloadNinja-ee8431a99d46c19d110853165ce9cbecae862ad0.zip
Ninja-ee8431a99d46c19d110853165ce9cbecae862ad0.tar.gz
Ninja-ee8431a99d46c19d110853165ce9cbecae862ad0.tar.bz2
Posix symbols are not enabled by default for MSVC
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 2b59283..3c2a297 100644
--- a/src/util.h
+++ b/src/util.h
@@ -76,6 +76,8 @@ string ElideMiddle(const string& str, size_t width);
#define unlink _unlink
#define chdir _chdir
#define strtoull _strtoui64
+#define getcwd _getcwd
+#define PATH_MAX _MAX_PATH
#endif
#ifdef _WIN32