EPROTO is defined on MSVC 2015.

This commit is contained in:
Roger A. Light 2017-02-20 21:20:00 +00:00
parent cac5464f7f
commit 92f3d50b8e

View File

@ -13,6 +13,7 @@
* ============================================================ */ * ============================================================ */
#if defined(_MSC_VER) && _MSC_VER < 1900 #if defined(_MSC_VER) && _MSC_VER < 1900
# define snprintf sprintf_s # define snprintf sprintf_s
# define EPROTO ECONNABORTED
#endif #endif
#ifdef WIN32 #ifdef WIN32
@ -27,6 +28,3 @@
#define uthash_malloc(sz) _mosquitto_malloc(sz) #define uthash_malloc(sz) _mosquitto_malloc(sz)
#define uthash_free(ptr,sz) _mosquitto_free(ptr) #define uthash_free(ptr,sz) _mosquitto_free(ptr)
#ifndef EPROTO
# define EPROTO ECONNABORTED
#endif