summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-12-20 12:12:44 (GMT)
committernijtmans <nijtmans>2010-12-20 12:12:44 (GMT)
commit3feb1f4a1e83ca5d074f949175fc1d28ff473b4e (patch)
tree1da8b74b177b50f9c0e55a90bcaaa5f661f858d6
parentf4896c75acae1daf0de3083f043e2774af381f39 (diff)
downloadtcl-3feb1f4a1e83ca5d074f949175fc1d28ff473b4e.zip
tcl-3feb1f4a1e83ca5d074f949175fc1d28ff473b4e.tar.gz
tcl-3feb1f4a1e83ca5d074f949175fc1d28ff473b4e.tar.bz2
fix cpuid determination
-rwxr-xr-xwin/configure4
-rw-r--r--win/configure.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/win/configure b/win/configure
index 01bb01a..17491d6 100755
--- a/win/configure
+++ b/win/configure
@@ -3651,8 +3651,8 @@ int
main ()
{
- unsigned int regs4;
- __cpuid(&regs,0);
+ unsigned int regs[4];
+ __cpuidex(regs,0,0);
__debugbreak();
;
diff --git a/win/configure.in b/win/configure.in
index 50f5de4..64b738d 100644
--- a/win/configure.in
+++ b/win/configure.in
@@ -3,7 +3,7 @@
# generate the file "configure", which is run during Tcl installation
# to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.128 2010/12/20 10:28:47 nijtmans Exp $
+# RCS: @(#) $Id: configure.in,v 1.129 2010/12/20 12:12:45 nijtmans Exp $
AC_INIT(../generic/tcl.h)
AC_PREREQ(2.59)
@@ -284,7 +284,7 @@ AC_TRY_COMPILE([
],
[
unsigned int regs[4];
- __cpuid(&regs,0);
+ __cpuidex(regs,0,0);
__debugbreak();
],
tcl_cv_intrinsics=yes,