e2324ff9bb
Conflicts: CMakeLists.txt ChangeLog.txt THANKS.txt appveyor.yml config.mk installer/mosquitto-cygwin.nsi installer/mosquitto.nsi lib/messages_mosq.c lib/messages_mosq.h lib/mosquitto.c lib/mosquitto.h lib/net_mosq.c lib/net_mosq.h lib/send_client_mosq.c lib/send_mosq.c lib/socks_mosq.c lib/will_mosq.c src/bridge.c src/conf.c src/context.c src/database.c src/loop.c src/mosquitto.c src/mosquitto_broker.h src/net.c src/read_handle.c src/read_handle_server.c src/subs.c
30 lines
753 B
C
30 lines
753 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)
|
|
|
|
#ifndef EPROTO
|
|
# define EPROTO ECONNABORTED
|
|
#endif
|