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.
|
|
|
|
* ============================================================ */
|
2016-03-17 21:24:50 +00:00
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
|
|
|
# define snprintf sprintf_s
|
2017-02-20 21:20:00 +00:00
|
|
|
# define EPROTO ECONNABORTED
|
2016-03-17 21:24:50 +00:00
|
|
|
#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
|
2014-09-17 21:58:46 +00:00
|
|
|
|
|
|
|
|
2015-04-19 21:10:59 +00:00
|
|
|
#define uthash_malloc(sz) mosquitto__malloc(sz)
|
|
|
|
#define uthash_free(ptr,sz) mosquitto__free(ptr)
|
2014-09-17 21:58:46 +00:00
|
|
|
|