From 3feb1f4a1e83ca5d074f949175fc1d28ff473b4e Mon Sep 17 00:00:00 2001 From: nijtmans Date: Mon, 20 Dec 2010 12:12:44 +0000 Subject: fix cpuid determination --- win/configure | 4 ++-- win/configure.in | 4 ++-- 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(®s,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(®s,0); + __cpuidex(regs,0,0); __debugbreak(); ], tcl_cv_intrinsics=yes, -- cgit v0.12