summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Util.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-10 11:30:21 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-10 11:30:21 +0000
commit5f17ff737dc7c95bc2ae251c1951faf630872c09 (patch)
treeae3eac4ba3496d96a1fb2fe2791cbe1b3ba1613d /cpp/src/IcePatch/Util.cpp
parentremoved old file (diff)
downloadice-5f17ff737dc7c95bc2ae251c1951faf630872c09.tar.bz2
ice-5f17ff737dc7c95bc2ae251c1951faf630872c09.tar.xz
ice-5f17ff737dc7c95bc2ae251c1951faf630872c09.zip
WIN32->_WIN32
Diffstat (limited to 'cpp/src/IcePatch/Util.cpp')
-rw-r--r--cpp/src/IcePatch/Util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IcePatch/Util.cpp b/cpp/src/IcePatch/Util.cpp
index 76b9c004fa0..e6b46ad3bd6 100644
--- a/cpp/src/IcePatch/Util.cpp
+++ b/cpp/src/IcePatch/Util.cpp
@@ -16,7 +16,7 @@
#include <openssl/md5.h>
#include <bzlib.h>
-#ifndef WIN32
+#ifndef _WIN32
# include <unistd.h>
# include <dirent.h>
#else
@@ -175,7 +175,7 @@ IcePatch::removeRecursive(const string& path)
void
IcePatch::changeDirectory(const string& path)
{
-#ifdef WIN32
+#ifdef _WIN32
if (_chdir(path.c_str()) == -1)
#else
if (chdir(path.c_str()) == -1)
@@ -190,7 +190,7 @@ IcePatch::changeDirectory(const string& path)
StringSeq
IcePatch::readDirectory(const string& path)
{
-#ifdef WIN32
+#ifdef _WIN32
struct _finddata_t data;
long h = _findfirst((path + "/*").c_str(), &data);
@@ -265,7 +265,7 @@ IcePatch::readDirectory(const string& path)
void
IcePatch::createDirectory(const string& path)
{
-#ifdef WIN32
+#ifdef _WIN32
if (::_mkdir(path.c_str()) == -1)
#else
if (::mkdir(path.c_str(), 00777) == -1)