diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-11 23:03:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-11 23:03:36 +0000 |
commit | f23f4ecf04d8b01ad4990dd2b15c675263590f7b (patch) | |
tree | 340e3e52f4aa5df1448894b7c025a4c433a1cadc /util.c | |
parent | acdc9439b3761ffac87a7aef738f3d3881bc7347 (diff) | |
download | wireshark-f23f4ecf04d8b01ad4990dd2b15c675263590f7b.tar.gz wireshark-f23f4ecf04d8b01ad4990dd2b15c675263590f7b.tar.bz2 wireshark-f23f4ecf04d8b01ad4990dd2b15c675263590f7b.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |