40e6a75709
Closes: #765.
32 lines
814 B
C
32 lines
814 B
C
/* ============================================================
|
|
* Control compile time options.
|
|
* ============================================================
|
|
*
|
|
* Compile time options have moved to config.mk.
|
|
*/
|
|
|
|
|
|
/* ============================================================
|
|
* Compatibility defines
|
|
*
|
|
* Generally for Windows native support.
|
|
* ============================================================ */
|
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
|
# define snprintf sprintf_s
|
|
# define EPROTO ECONNABORTED
|
|
#endif
|
|
|
|
#ifdef WIN32
|
|
# ifndef strcasecmp
|
|
# define strcasecmp strcmpi
|
|
# endif
|
|
#define strtok_r strtok_s
|
|
#define strerror_r(e, b, l) strerror_s(b, l, e)
|
|
#endif
|
|
|
|
|
|
#define uthash_malloc(sz) mosquitto__malloc(sz)
|
|
#define uthash_free(ptr,sz) mosquitto__free(ptr)
|
|
|
|
#define _POSIX_C_SOURCE 200809L
|