summaryrefslogtreecommitdiff
path: root/Xwindows.h
diff options
context:
space:
mode:
Diffstat (limited to 'Xwindows.h')
-rw-r--r--Xwindows.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xwindows.h b/Xwindows.h
index 129c78e..7fb9840 100644
--- a/Xwindows.h
+++ b/Xwindows.h
@@ -68,7 +68,7 @@ The Open Group.
#define sleep(x) Sleep(1000*x)
-#if defined(WIN32) && PATH_MAX < 1024
+#if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024)
#undef PATH_MAX
#define PATH_MAX 1024
#endif