summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-17 17:56:51 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-17 17:56:51 +0200
commit3614d5546034eae34dd0cbf282e058e431ec7295 (patch)
tree17eb5b446cbcc0746de92f4bfa9a5db3393bc2cd /soltools
parent8b60382f524e1e8b19d5e17d3b7b901ec65526cd (diff)
WaE: 'PATH_MAX' : macro redefinition
Change-Id: I153e34d24493bbbebf37422fb6382969153506a8
Diffstat (limited to 'soltools')
-rw-r--r--soltools/cpp/_include.c4
-rw-r--r--soltools/cpp/_macro.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/soltools/cpp/_include.c b/soltools/cpp/_include.c
index 7a9044b91194..2d4b919f21e0 100644
--- a/soltools/cpp/_include.c
+++ b/soltools/cpp/_include.c
@@ -33,7 +33,9 @@
#if defined(__IBMC__) || defined(__EMX__) || defined(_MSC_VER)
# include <fcntl.h>
-# define PATH_MAX _MAX_PATH
+# ifndef PATH_MAX
+# define PATH_MAX _MAX_PATH
+# endif
#endif
#include <limits.h>
diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c
index b86af1022dd3..bd91141bc0b9 100644
--- a/soltools/cpp/_macro.c
+++ b/soltools/cpp/_macro.c
@@ -24,7 +24,9 @@
#include <stdlib.h>
#include <string.h>
#if defined(__IBMC__) || defined(__EMX__) || defined(_MSC_VER)
-# define PATH_MAX _MAX_PATH
+# ifndef PATH_MAX
+# define PATH_MAX _MAX_PATH
+# endif
#endif
#include <limits.h>