浏览代码

windows fix

Pal Lockheart 6 年之前
父节点
当前提交
8dc7616236
共有 2 个文件被更改,包括 2 次插入0 次删除
  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__
 #ifndef __MINGW__
 #define strtok_r strtok_s
 #define strtok_r strtok_s
+#define strncasecmp _strnicmp
 #endif
 #endif

+ 1 - 0
winrt/pal_config.h

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