aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-10-30 23:14:03 -0500
committerBrent Cook <bcook@openbsd.org>2016-10-30 23:14:03 -0500
commitcb63e633708e41d5b524962202977585ab8c1267 (patch)
tree34ce35dac7a9f92fa345a45b781e32ba3cc9f6b5
parent2570ad9344ca2d2f675789b4f940f42bdcefb7e3 (diff)
downloadportable-cb63e633708e41d5b524962202977585ab8c1267.tar.gz
portable-cb63e633708e41d5b524962202977585ab8c1267.tar.bz2
portable-cb63e633708e41d5b524962202977585ab8c1267.zip
define PATH_MAX in more msvc versions
-rw-r--r--include/compat/limits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/compat/limits.h b/include/compat/limits.h
index a3a04a5..73cccfc 100644
--- a/include/compat/limits.h
+++ b/include/compat/limits.h
@@ -5,6 +5,14 @@
5 5
6#ifdef _MSC_VER 6#ifdef _MSC_VER
7#include <../include/limits.h> 7#include <../include/limits.h>
8#if _MSC_VER >= 1900
9#include <../ucrt/stdlib.h>
10#else
11#include <../include/stdlib.h>
12#endif
13#ifndef PATH_MAX
14#define PATH_MAX _MAX_PATH
15#endif
8#else 16#else
9#include_next <limits.h> 17#include_next <limits.h>
10#endif 18#endif