summaryrefslogtreecommitdiffstats
path: root/win/tclWin32Dll.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-07-02 16:52:17 (GMT)
committervincentdarley <vincentdarley>2004-07-02 16:52:17 (GMT)
commit236570f0308763b7305fcff43431ac39f7e2d835 (patch)
tree03e96b9bdf3fa1670ff4ef064d46d27dd3d089c0 /win/tclWin32Dll.c
parent427b3847a04534c1a0703535fe306878274bcf20 (diff)
downloadtcl-236570f0308763b7305fcff43431ac39f7e2d835.zip
tcl-236570f0308763b7305fcff43431ac39f7e2d835.tar.gz
tcl-236570f0308763b7305fcff43431ac39f7e2d835.tar.bz2
backport of recent fs fixes from cvs head
Diffstat (limited to 'win/tclWin32Dll.c')
-rw-r--r--win/tclWin32Dll.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index 78d8bc5..f30b764 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWin32Dll.c,v 1.24.2.4 2004/06/21 22:07:32 mdejong Exp $
+ * RCS: @(#) $Id: tclWin32Dll.c,v 1.24.2.5 2004/07/02 16:52:19 vincentdarley Exp $
*/
#include "tclWinInt.h"
@@ -79,6 +79,14 @@ _except_TclWinCPUID_detach_handler(
/*
+ * VC++ 5.x has no 'cpuid' assembler instruction, so we
+ * must emulate it
+ */
+#if defined(_MSC_VER) && ( _MSC_VER <= 1100 )
+#define cpuid __asm __emit 0fh __asm __emit 0a2h
+#endif
+
+/*
* The following function tables are used to dispatch to either the
* wide-character or multi-byte versions of the operating system calls,
* depending on whether the Unicode calls are available.