diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2014-02-10 11:59:22 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2014-02-10 11:59:22 (GMT) |
commit | f39208fdd2ca0e4725df3049c3b103776aa5bcea (patch) | |
tree | 6f2f0f51d80e979e3932cee061ad494923143215 /generic/tclCmdAH.c | |
parent | f1579f615c015aa9bf59947064c2da91fb71ef1d (diff) | |
download | tcl-f39208fdd2ca0e4725df3049c3b103776aa5bcea.zip tcl-f39208fdd2ca0e4725df3049c3b103776aa5bcea.tar.gz tcl-f39208fdd2ca0e4725df3049c3b103776aa5bcea.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]
FossilOrigin-Name: 80cf092cc7b1b5761346f83ceb291580270caebe
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index f90819a..d90a747 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -1590,7 +1590,7 @@ FileAttrIsOwnedCmd( * test for equivalence to the current user. */ -#if defined(__WIN32__) || defined(__CYGWIN__) +#if defined(_WIN32) || defined(__CYGWIN__) value = 1; #else value = (geteuid() == buf.st_uid); |