]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7966: fix msvc 2015 ldns build
authorMike Jerris <mike@jerris.com>
Mon, 31 Aug 2015 18:22:41 +0000 (14:22 -0400)
committerMike Jerris <mike@jerris.com>
Mon, 31 Aug 2015 19:09:03 +0000 (15:09 -0400)
libs/win32/ldns/ldns-lib/config.h

index 08afdec1e994a3861d7c40cb50a3487bd5d1f890..58463456b3c5a9f944dde2981fd0df574d28e8bd 100644 (file)
 #define inline
 #endif
 
+#if _MSC_VER >= 1900
+#include <stdint.h>
+#else
 /* Define to `short' if <sys/types.h> does not define. */
 #undef int16_t
 
 /* Define to 'int' if not defined */
 #undef socklen_t
 
-/* Define to `int' if <sys/types.h> does not define. */
-#define ssize_t int
-
 /* Define to `unsigned short' if <sys/types.h> does not define. */
 #define uint16_t unsigned short
 
 
 #define int8_t char
 
+#endif
+/* Define to `int' if <sys/types.h> does not define. */
+#define ssize_t int
+
+
 #include <stdio.h>
 #include <string.h>
 //#include <unistd.h>
 #ifdef _MSC_VER
 #if _MSC_VER < 1900
 #define snprintf _snprintf
+#else
+#ifndef HAVE_ISBLANK
+#define HAVE_ISBLANK
+#endif
 #endif
 #define vsnprintf _vsnprintf
 #define strcasecmp _stricmp