We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8752687 commit 77495d4Copy full SHA for 77495d4
websocketpp/common/network.hpp
@@ -29,7 +29,7 @@
29
#define WEBSOCKETPP_COMMON_NETWORK_HPP
30
31
// For ntohs and htons
32
-#if defined(WIN32)
+#if defined(_WIN32)
33
#include <winsock2.h>
34
#else
35
//#include <arpa/inet.h>
websocketpp/common/platforms.hpp
@@ -33,7 +33,7 @@
* don't fit somewhere else better.
*/
36
-#if defined(WIN32) && !defined(NOMINMAX)
+#if defined(_WIN32) && !defined(NOMINMAX)
37
// don't define min and max macros that conflict with std::min and std::max
38
#define NOMINMAX
39
#endif
websocketpp/common/stdint.hpp
@@ -32,7 +32,7 @@
#define __STDC_LIMIT_MACROS 1
-#if WIN32 && (_MSC_VER < 1600)
+#if defined (_WIN32) && defined (_MSC_VER) && (_MSC_VER < 1600)
#include <boost/cstdint.hpp>
using boost::int8_t;
0 commit comments