Browse Source

windows fix

Pal Lockheart 6 years ago
parent
commit
8dc7616236
2 changed files with 2 additions and 0 deletions
  1. 1 0
      win32/pal_config.h
  2. 1 0
      winrt/pal_config.h

+ 1 - 0
win32/pal_config.h

@@ -62,4 +62,5 @@
 
 #ifndef __MINGW__
 #define strtok_r strtok_s
+#define strncasecmp _strnicmp
 #endif

+ 1 - 0
winrt/pal_config.h

@@ -58,6 +58,7 @@
 #define PAL_IS_PATH_SEPARATOR(x) ((x) == '\\' || (x) == '/')
 
 #define strtok_r strtok_s
+#define strncasecmp _strnicmp
 
 PAL_C_LINKAGE_BEGIN