From 94eeb9cadc95eb67307f8c9f83238a1d4c5f0927 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sun, 3 May 2015 15:06:26 -0400 Subject: ported to MSVC 2005, 2012 and MinGW 64 --- config.h.cmake | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index e1983c05..04dc00f7 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -24,9 +24,6 @@ /* Define to 1 if you have type 'intptr_t' defined. */ #cmakedefine HAVE_INTPTR_T 1 -/* Define to 1 if you have the `isspace' function. */ -#cmakedefine HAVE_ISSPACE 1 - /* Define to 1 if you have the `iswspace' function. */ #cmakedefine HAVE_ISWSPACE 1 @@ -66,11 +63,11 @@ /* Define to 1 if you have the `strncasecmp' function. */ #cmakedefine HAVE_STRNCASECMP 1 -/* Define to 1 if you have the `stricmp' function. */ -#cmakedefine HAVE_STRICMP 1 +/* Define to 1 if you have the `_stricmp' function. */ +#cmakedefine HAVE__STRICMP 1 -/* Define to 1 if you have the `strnicmp' function. */ -#cmakedefine HAVE_STRNICMP 1 +/* Define to 1 if you have the `_strnicmp' function. */ +#cmakedefine HAVE__STRNICMP 1 /* Define to 1 if you have the `strdup' function. */ #cmakedefine HAVE_STRDUP 1 @@ -225,27 +222,29 @@ typedef int pid_t; #include #endif -/* strcasecmp: String compare, case independent */ -#if !defined(HAVE_STRCASECMP) -#if defined(HAVE_STRICMP) -#define strcasecmp stricmp +/* strcasecmp or stricmp: String compare, case independent */ +#if defined(HAVE__STRICMP) +#define strcasecmp _stricmp +#include #else +#if !defined(HAVE_STRCASECMP) #error "No case independent string compare function available" -#endif #else #include #endif +#endif -/* strncasecmp: String compare, case independent, size limited */ -#if !defined(HAVE_STRNCASECMP) -#if defined(HAVE_STRNICMP) -#define strncasecmp strnicmp +/* strncasecmp or strnicmp: String compare, case independent, size limited */ +#if defined(HAVE__STRICMP) +#define strncasecmp _strnicmp +#include #else +#if !defined(HAVE_STRNCASECMP) #error "No case independent string compare size limited function available" -#endif #else #include #endif +#endif /* snprintf: size limited sprintf */ #if defined(HAVE__SNPRINTF) @@ -326,6 +325,9 @@ typedef int pid_t; #else #include #include +#if defined(__MINGW32__) || defined(__MINGW64__) +#define mkdir(path, mode) mkdir(path) +#endif #endif #endif -- cgit v1.2.1