diff --git a/deps/jemalloc-win/include/msvc_compat/stdint.h b/deps/jemalloc-win/include/msvc_compat/stdint.h index 1bffa3b399b4..76bbdebc48c3 100644 --- a/deps/jemalloc-win/include/msvc_compat/stdint.h +++ b/deps/jemalloc-win/include/msvc_compat/stdint.h @@ -103,11 +103,20 @@ typedef uint64_t uint_least64_t; // 7.18.1.3 Fastest minimum-width integer types typedef int8_t int_fast8_t; -typedef int16_t int_fast16_t; +#if (_MSC_VER <= 1800) + typedef int16_t int_fast16_t; +#else + typedef int int_fast16_t; +#endif + typedef int32_t int_fast32_t; typedef int64_t int_fast64_t; typedef uint8_t uint_fast8_t; -typedef uint16_t uint_fast16_t; +#if (_MSC_VER <= 1800) + typedef uint16_t uint_fast16_t; +#else + typedef unsigned int uint_fast16_t; +#endif typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; diff --git a/deps/lua/src/fpconv.c b/deps/lua/src/fpconv.c index 6ac5ee02f591..eb31a57eaa33 100644 --- a/deps/lua/src/fpconv.c +++ b/deps/lua/src/fpconv.c @@ -37,7 +37,9 @@ #ifdef _WIN32 #define inline __inline -#define snprintf _snprintf +#if (_MSC_VER <= 1800) + #define snprintf _snprintf +#endif #endif /* Lua CJSON assumes the locale is the same for all threads within a diff --git a/deps/lua/src/luaconf.h b/deps/lua/src/luaconf.h index 5b099b0e7291..8887fa2b3785 100644 --- a/deps/lua/src/luaconf.h +++ b/deps/lua/src/luaconf.h @@ -750,7 +750,9 @@ union luai_Cast { double l_d; long l_l; }; #ifdef _WIN32 -#define snprintf _snprintf +#if (_MSC_VER <= 1800) + #define snprintf _snprintf +#endif #endif diff --git a/src/Win32_Interop/Win32_FDAPI.h b/src/Win32_Interop/Win32_FDAPI.h index e328ca475246..8fae9c75ebce 100644 --- a/src/Win32_Interop/Win32_FDAPI.h +++ b/src/Win32_Interop/Win32_FDAPI.h @@ -37,6 +37,7 @@ typedef unsigned long nfds_t; #include #include #include +#include // Including a version of this file modified to eliminate prototype // definitions not removed by INCL_WINSOCK_API_PROTOTYPES diff --git a/src/Win32_Interop/Win32_Time.h b/src/Win32_Interop/Win32_Time.h index 5cb382677bf7..1d4b9a73e003 100644 --- a/src/Win32_Interop/Win32_Time.h +++ b/src/Win32_Interop/Win32_Time.h @@ -25,6 +25,9 @@ #ifndef WIN32_INTEROP_TIME_H #define WIN32_INTEROP_TIME_H +#if (_MSC_VER > 1800) +#include +#endif #include #define gettimeofday gettimeofday_highres diff --git a/src/redis.h b/src/redis.h index 7a3a236df069..1a53f84c35e7 100644 --- a/src/redis.h +++ b/src/redis.h @@ -1087,7 +1087,7 @@ void freeClientsInAsyncFreeQueue(void); void asyncCloseClientOnOutputBufferLimitReached(redisClient *c); int getClientType(redisClient *c); int getClientTypeByName(char *name); -char *getClientTypeName(int class); +char *getClientTypeName(int IF_WIN32(_class,class)); void flushSlavesOutputBuffers(void); void disconnectSlaves(void); int listenToPort(int port, int *fds, int *count);