summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorntoskrnl <ntoskrnl11@yahoo.com>2012-07-29 16:14:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-02 14:21:16 (GMT)
commitf94fabd999c304de958cc051e9625f169cec138f (patch)
tree9ee58bc33bd745afa32b0d57b413cc7a555cd545 /src/client/Client.cpp
parent87dfc47c9785f834e61eef4545c503071d1665fc (diff)
downloadpowder-f94fabd999c304de958cc051e9625f169cec138f.zip
powder-f94fabd999c304de958cc051e9625f169cec138f.tar.gz
Rename WIN32 preprocessor definition to WIN
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index 29f6a94..2684689 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <deque>
-#ifdef WIN32
+#ifdef WIN
#include <direct.h>
#else
#include <sys/stat.h>
@@ -30,7 +30,7 @@
extern "C"
{
-#if defined(WIN32) && !defined(__GNUC__)
+#if defined(WIN) && !defined(__GNUC__)
#include <io.h>
#else
#include <dirent.h>
@@ -136,7 +136,7 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str
{
//Get full file listing
std::vector<std::string> directoryList;
-#if defined(WIN32) && !defined(__GNUC__)
+#if defined(WIN) && !defined(__GNUC__)
//Windows
struct _finddata_t currentFile;
intptr_t findFileHandle;
@@ -591,7 +591,7 @@ string Client::AddStamp(GameSave * saveData)
<< std::setw(8) << std::setfill('0') << std::hex << lastStampTime
<< std::setw(2) << std::setfill('0') << std::hex << lastStampName;
-#ifdef WIN32
+#ifdef WIN
_mkdir(STAMPS_DIR);
#else
mkdir(STAMPS_DIR, 0755);
@@ -615,7 +615,7 @@ string Client::AddStamp(GameSave * saveData)
void Client::updateStamps()
{
-#ifdef WIN32
+#ifdef WIN
_mkdir(STAMPS_DIR);
#else
mkdir(STAMPS_DIR, 0755);