Fix build warnings on Mac.
This commit is contained in:
parent
5b4a4cfc6a
commit
95d26bb0e6
10
config.h
10
config.h
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* Compatibility defines
|
* Compatibility defines
|
||||||
*
|
|
||||||
* Generally for Windows native support.
|
|
||||||
* ============================================================ */
|
* ============================================================ */
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
# define snprintf sprintf_s
|
# define snprintf sprintf_s
|
||||||
@ -29,7 +27,11 @@
|
|||||||
#define uthash_malloc(sz) mosquitto__malloc(sz)
|
#define uthash_malloc(sz) mosquitto__malloc(sz)
|
||||||
#define uthash_free(ptr,sz) mosquitto__free(ptr)
|
#define uthash_free(ptr,sz) mosquitto__free(ptr)
|
||||||
|
|
||||||
#define _DEFAULT_SOURCE 1
|
#ifdef __APPLE__
|
||||||
#define _POSIX_C_SOURCE 200809L
|
# define __DARWIN_C_SOURCE
|
||||||
|
#else
|
||||||
|
# define _DEFAULT_SOURCE 1
|
||||||
|
# define _POSIX_C_SOURCE 200809L
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user