summaryrefslogtreecommitdiffstats
path: root/src/include/win-mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/win-mac.h')
-rw-r--r--src/include/win-mac.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/win-mac.h b/src/include/win-mac.h
index 85f7a376f6..84ffe7976c 100644
--- a/src/include/win-mac.h
+++ b/src/include/win-mac.h
@@ -195,10 +195,10 @@ typedef _W64 int ssize_t;
* Functions with slightly different names on the PC
*/
#ifndef strcasecmp
-#define strcasecmp stricmp
+#define strcasecmp _stricmp
#endif
#ifndef strncasecmp
-#define strncasecmp strnicmp
+#define strncasecmp _strnicmp
#endif
/* VS2005 has deprecated strdup */
@@ -206,6 +206,9 @@ typedef _W64 int ssize_t;
#define strdup _strdup
#endif
+/* Windows has its own name for reentrant strtok. */
+#define strtok_r strtok_s
+
HINSTANCE get_lib_instance(void);
#define GETSOCKNAME_ARG2_TYPE struct sockaddr