summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-11-13 18:16:58 +0100
committerTorbjorn Granlund <tege@gmplib.org>2010-11-13 18:16:58 +0100
commit05810a5d9b1387064239c5ec975c8e4fbb354ef6 (patch)
treed772d883004bdb80b1ae0ca3af019f0902c3c52f /config.guess
parent3ee827409bd3a6f64b96e9fe082205da88128206 (diff)
downloadgmp-05810a5d9b1387064239c5ec975c8e4fbb354ef6.tar.gz
config.guess (x86): Make test C snippet compatible with C++.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess9
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);