瀏覽代碼

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 年之前
父節點
當前提交
73efe78c94
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1
    1
      networking.hpp
  2. 1
    1
      networking.inline.hpp
  3. 2
    2
      timing.cpp

+ 1
- 1
networking.hpp 查看文件



//// Platform specific includes... //// Platform specific includes...


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


//// Windows headers... //// Windows headers...



+ 1
- 1
networking.inline.hpp 查看文件



//// Windows platform //// 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 inline int Networking::getLastError() { // In windows you get the last error
return WSAGetLastError(); // from WSAGetLastError(); return WSAGetLastError(); // from WSAGetLastError();

+ 2
- 2
timing.cpp 查看文件



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


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




// Abstracted doRawSleep() function //////////////////////////////////////////// // 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 // 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 // we will use that for doRawSleep(). It's important to note that under normal

Loading…
取消
儲存