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.
|
|
|
|
* ============================================================ */
|
|
|
|
#ifdef WIN32
|
|
|
|
#define snprintf sprintf_s
|
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
|
|
|
|
|
|
|
|
|
|
|
#define uthash_malloc(sz) _mosquitto_malloc(sz)
|
|
|
|
#define uthash_free(ptr,sz) _mosquitto_free(ptr)
|
|
|
|
|