aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-11 23:03:36 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-11 23:03:36 +0000
commitf23f4ecf04d8b01ad4990dd2b15c675263590f7b (patch)
tree340e3e52f4aa5df1448894b7c025a4c433a1cadc /util.c
parentacdc9439b3761ffac87a7aef738f3d3881bc7347 (diff)
Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 79dcf81e80..807e5aa029 100644
--- a/util.c
+++ b/util.c
@@ -161,7 +161,7 @@ try_tempfile(char *namebuf, int namebuflen, const char *dir, const char *pfx)
}
static char *tmpdir = NULL;
-#ifdef WIN32
+#ifdef _WIN32
static char *temp = NULL;
#endif
static char *E_tmpdir;
@@ -180,7 +180,7 @@ create_tempfile(char *namebuf, int namebuflen, const char *pfx)
if (!initialized) {
if ((dir = getenv("TMPDIR")) != NULL)
tmpdir = setup_tmpdir(dir);
-#ifdef WIN32
+#ifdef _WIN32
if ((dir = getenv("TEMP")) != NULL)
temp = setup_tmpdir(dir);
#endif
@@ -195,7 +195,7 @@ create_tempfile(char *namebuf, int namebuflen, const char *pfx)
return fd;
}
-#ifdef WIN32
+#ifdef _WIN32
if (temp != NULL) {
fd = try_tempfile(namebuf, namebuflen, temp, pfx);
if (fd != -1)