summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-04-20 13:58:17 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-04-20 13:58:17 +0000
commit372f37171ba3875ea4bf7f60150d92869e06010f (patch)
treed2c914121fe5f8e74ce26630d07d06b4d345c313
parente489ec65b4b2ab0a050d8dbf7ec0658e6decb8b3 (diff)
check for define PATH_MAX before referencing it
-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