summaryrefslogtreecommitdiffstats
path: root/win/tclWin32Dll.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-10 11:59:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-10 11:59:22 (GMT)
commit0258413bde6ef149dba024baac68f1fc66170293 (patch)
treeb43d62bfa44e3f58c1b9a9ad754ce530100ddb13 /win/tclWin32Dll.c
parentb6ae0212a194c6c55a0c05a0f2194213da433583 (diff)
downloadtcl-0258413bde6ef149dba024baac68f1fc66170293.zip
tcl-0258413bde6ef149dba024baac68f1fc66170293.tar.gz
tcl-0258413bde6ef149dba024baac68f1fc66170293.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 'win/tclWin32Dll.c')
-rw-r--r--win/tclWin32Dll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index 634e1d2..688fa8d 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -69,7 +69,7 @@ TCL_DECLARE_MUTEX(mountPointMap)
* We will need this below.
*/
-#ifdef __WIN32__
+#ifdef _WIN32
#ifndef STATIC_BUILD
/*
@@ -137,7 +137,7 @@ DllMain(
return TRUE;
}
#endif /* !STATIC_BUILD */
-#endif /* __WIN32__ */
+#endif /* _WIN32 */
/*
*----------------------------------------------------------------------