diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2010-11-13 18:16:58 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2010-11-13 18:16:58 +0100 |
commit | 05810a5d9b1387064239c5ec975c8e4fbb354ef6 (patch) | |
tree | d772d883004bdb80b1ae0ca3af019f0902c3c52f /config.guess | |
parent | 3ee827409bd3a6f64b96e9fe082205da88128206 (diff) | |
download | gmp-05810a5d9b1387064239c5ec975c8e4fbb354ef6.tar.gz |
config.guess (x86): Make test C snippet compatible with C++.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config.guess b/config.guess index c397d07f7..8a0b20b31 100755 --- a/config.guess +++ b/config.guess @@ -704,13 +704,20 @@ _cpuid: ret EOF cat <<EOF >${dummy}2.c +#include <string.h> +#include <stdio.h> +#if __cplusplus +extern "C" +#endif +unsigned int cpuid (char dummy_string[12], int); +int main () { char vendor_string[13]; char dummy_string[12]; long fms; int family, model, stepping; - char *modelstr; + const char *modelstr; int cpu_64bit = 0; cpuid (vendor_string, 0); |