mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-13 10:37:42 +00:00
FS-7966: fix msvc 2015 ldns build
This commit is contained in:
parent
b126788ac7
commit
8d92ff2ed3
@ -263,6 +263,9 @@
|
|||||||
#define inline
|
#define inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1900
|
||||||
|
#include <stdint.h>
|
||||||
|
#else
|
||||||
/* Define to `short' if <sys/types.h> does not define. */
|
/* Define to `short' if <sys/types.h> does not define. */
|
||||||
#undef int16_t
|
#undef int16_t
|
||||||
|
|
||||||
@ -284,9 +287,6 @@
|
|||||||
/* Define to 'int' if not defined */
|
/* Define to 'int' if not defined */
|
||||||
#undef socklen_t
|
#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 to `unsigned short' if <sys/types.h> does not define. */
|
||||||
#define uint16_t unsigned short
|
#define uint16_t unsigned short
|
||||||
|
|
||||||
@ -303,6 +303,11 @@
|
|||||||
|
|
||||||
#define int8_t char
|
#define int8_t char
|
||||||
|
|
||||||
|
#endif
|
||||||
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
|
#define ssize_t int
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
//#include <unistd.h>
|
//#include <unistd.h>
|
||||||
@ -356,6 +361,10 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#if _MSC_VER < 1900
|
#if _MSC_VER < 1900
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
#else
|
||||||
|
#ifndef HAVE_ISBLANK
|
||||||
|
#define HAVE_ISBLANK
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user