diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-10 11:59:22 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-10 11:59:22 (GMT) |
| commit | 2fa6fb1203cade8fe1f366864ce759eb7c063468 (patch) | |
| tree | b43d62bfa44e3f58c1b9a9ad754ce530100ddb13 /generic/tclPathObj.c | |
| parent | 099c5cb26c9496fbf4a9cc294649a89dbe205bb5 (diff) | |
| download | tcl-2fa6fb1203cade8fe1f366864ce759eb7c063468.zip tcl-2fa6fb1203cade8fe1f366864ce759eb7c063468.tar.gz tcl-2fa6fb1203cade8fe1f366864ce759eb7c063468.tar.bz2 | |
Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. Clang/LLVM) don't define it, and _WIN32 is much more portable anyway.
See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
Diffstat (limited to 'generic/tclPathObj.c')
| -rw-r--r-- | generic/tclPathObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index b7f3dcf..fe6063f 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -512,7 +512,7 @@ TclFSGetPathType( if (PATHFLAGS(pathPtr) == 0) { /* The path is not absolute... */ -#ifdef __WIN32__ +#ifdef _WIN32 /* ... on Windows we must make another call to determine whether * it's relative or volumerelative [Bug 2571597]. */ return TclGetPathType(pathPtr, filesystemPtrPtr, driveNameLengthPtr, @@ -1956,7 +1956,7 @@ Tcl_FSGetNormalizedPath( /* * We have a refCount on the cwd. */ -#ifdef __WIN32__ +#ifdef _WIN32 } else if (type == TCL_PATH_VOLUME_RELATIVE) { /* * Only Windows has volume-relative paths. @@ -1969,7 +1969,7 @@ Tcl_FSGetNormalizedPath( return NULL; } pureNormalized = 0; -#endif /* __WIN32__ */ +#endif /* _WIN32 */ } } |
