git-svn-id: https://svn.microneil.com/svn/PKG-SNF-SDK-WIN/trunk@21 7d91e7c8-5a61-404e-b06a-95855fde9112master
REM | REM | ||||
REM 7. Pause to let the developer view the success and remind them to commit the revision to SVN. | REM 7. Pause to let the developer view the success and remind them to commit the revision to SVN. | ||||
set DISTDIR=SNFMultiSDK_Windows_3.1 | |||||
set DISTDIR=SNFMultiSDK_Windows_3.2 | |||||
set TEMPDIR=C:\TEMP | set TEMPDIR=C:\TEMP | ||||
set ZIPFILE=%DISTDIR%.zip | set ZIPFILE=%DISTDIR%.zip | ||||
set TEMPDIST=%TEMPDIR%\%DISTDIR% | set TEMPDIST=%TEMPDIR%\%DISTDIR% |
//// Platform specific includes... | //// Platform specific includes... | ||||
#if defined(WIN32) || defined(WIN64) | |||||
#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) | |||||
//// Windows headers... | //// Windows headers... | ||||
//// 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(); |
// 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 |