Browse Source

Modified windows detection flags to include _WIN32 and _WIN64


git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@25 d34b734f-a00e-4b39-a726-e4eeb87269ab
wx
madscientist 10 years ago
parent
commit
73efe78c94
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      networking.hpp
  2. 1
    1
      networking.inline.hpp
  3. 2
    2
      timing.cpp

+ 1
- 1
networking.hpp View File

@@ -42,7 +42,7 @@ using namespace std;

//// Platform specific includes...

#if defined(WIN32) || defined(WIN64)
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)

//// Windows headers...


+ 1
- 1
networking.inline.hpp View File

@@ -26,7 +26,7 @@

//// Windows platform

#if defined(WIN32) || (WIN64)
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)

inline int Networking::getLastError() { // In windows you get the last error
return WSAGetLastError(); // from WSAGetLastError();

+ 2
- 2
timing.cpp View File

@@ -27,7 +27,7 @@

// Platform Specific Includes //////////////////////////////////////////////////

#ifdef WIN32
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
#include <windows.h>
#endif

@@ -45,7 +45,7 @@ using namespace std;

// Abstracted doRawSleep() function ////////////////////////////////////////////

#ifdef WIN32
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)

// In a WIN32 environment Sleep() is defined and it works in milliseconds so
// we will use that for doRawSleep(). It's important to note that under normal

Loading…
Cancel
Save