Browse Source

eliminate warnings in linux mingw build

Pal Lockheart 7 years ago
parent
commit
c87af887b5
2 changed files with 4 additions and 0 deletions
  1. 2 0
      win32/pal_config.h
  2. 2 0
      winrt/pal_config.h

+ 2 - 0
win32/pal_config.h

@@ -57,4 +57,6 @@
 
 #define PAL_FILESYSTEM_IGNORE_CASE 1
 
+#ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
+#endif

+ 2 - 0
winrt/pal_config.h

@@ -54,7 +54,9 @@
 
 #define PAL_FILESYSTEM_IGNORE_CASE 1
 
+#ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
+#endif
 
 PAL_C_LINKAGE_BEGIN