mosquitto/config.h

31 lines
782 B
C
Raw Normal View History

2014-05-07 22:27:00 +00:00
/* ============================================================
* 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
2017-02-20 21:20:00 +00:00
# define EPROTO ECONNABORTED
#endif
2014-05-07 22:27:00 +00:00
#ifdef WIN32
2014-10-26 21:17:08 +00:00
# ifndef strcasecmp
# define strcasecmp strcmpi
# endif
2014-05-07 22:27:00 +00:00
#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)