Skip to content

Commit

Permalink
Merge pull request XRPLF#340 from dschmidt/master
Browse files Browse the repository at this point in the history
Use _WIN32 instead of WIN32 preprocessor directive
  • Loading branch information
zaphoyd committed Mar 16, 2014
2 parents 8752687 + 77495d4 commit 2207348
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion websocketpp/common/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define WEBSOCKETPP_COMMON_NETWORK_HPP

// For ntohs and htons
#if defined(WIN32)
#if defined(_WIN32)
#include <winsock2.h>
#else
//#include <arpa/inet.h>
Expand Down
2 changes: 1 addition & 1 deletion websocketpp/common/platforms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* don't fit somewhere else better.
*/

#if defined(WIN32) && !defined(NOMINMAX)
#if defined(_WIN32) && !defined(NOMINMAX)
// don't define min and max macros that conflict with std::min and std::max
#define NOMINMAX
#endif
Expand Down
2 changes: 1 addition & 1 deletion websocketpp/common/stdint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define __STDC_LIMIT_MACROS 1
#endif

#if WIN32 && (_MSC_VER < 1600)
#if defined (_WIN32) && defined (_MSC_VER) && (_MSC_VER < 1600)
#include <boost/cstdint.hpp>

using boost::int8_t;
Expand Down

0 comments on commit 2207348

Please sign in to comment.