forked from Mirrors/freeswitch
FS-7966: fix msvc 2015 ldns build
This commit is contained in:
parent
b126788ac7
commit
8d92ff2ed3
@ -263,6 +263,9 @@
|
||||
#define inline
|
||||
#endif
|
||||
|
||||
#if _MSC_VER >= 1900
|
||||
#include <stdint.h>
|
||||
#else
|
||||
/* Define to `short' if <sys/types.h> does not define. */
|
||||
#undef int16_t
|
||||
|
||||
@ -284,9 +287,6 @@
|
||||
/* 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
|
||||
|
||||
@ -303,6 +303,11 @@
|
||||
|
||||
#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>
|
||||
@ -356,6 +361,10 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user