27 lines
701 B
C
27 lines
701 B
C
/* ============================================================
|
|
* 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
|
|
# 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)
|
|
|