diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-04 16:19:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-04 16:19:25 (GMT) |
commit | 8be8b508867864add7ba4793c6b856384ef8b873 (patch) | |
tree | 715582211561404bab8969119c458c348799737f /win/tclWin32Dll.c | |
parent | 7b1d345686119335c547557b1029df64b0d3c5c5 (diff) | |
download | tcl-8be8b508867864add7ba4793c6b856384ef8b873.zip tcl-8be8b508867864add7ba4793c6b856384ef8b873.tar.gz tcl-8be8b508867864add7ba4793c6b856384ef8b873.tar.bz2 |
See [https://github.com/tcltk/tcl/pull/10]
Diffstat (limited to 'win/tclWin32Dll.c')
-rw-r--r-- | win/tclWin32Dll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c index 9061dd0..8620a08 100644 --- a/win/tclWin32Dll.c +++ b/win/tclWin32Dll.c @@ -661,12 +661,12 @@ TclWinCPUID( { int status = TCL_ERROR; -#if defined(HAVE_INTRIN_H) && defined(_WIN64) +#if defined(HAVE_INTRIN_H) && defined(_WIN64) && defined(HAVE_CPUID) __cpuid((int *)regsPtr, index); status = TCL_OK; -#elif defined(__GNUC__) +#elif defined(__GNUC__) && defined(HAVE_CPUID) # if defined(_WIN64) /* * Execute the CPUID instruction with the given index, and store results @@ -782,7 +782,7 @@ TclWinCPUID( status = registration.status; # endif /* !_WIN64 */ -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && defined(HAVE_CPUID) # if defined(_WIN64) __cpuid(regsPtr, index); |