summaryrefslogtreecommitdiff
path: root/tests/amd64check.c
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2014-11-15 15:06:24 +0100
committerMarc Glisse <marc.glisse@inria.fr>2014-11-15 15:06:24 +0100
commitcd249a3bbc86391e014b7b6dbef74a532274a631 (patch)
tree9b6f58d44975850967e17312cd244f50a17bd084 /tests/amd64check.c
parentaea34d566bc40bdc37743c7db83c542cb1035173 (diff)
downloadgmp-cd249a3bbc86391e014b7b6dbef74a532274a631.tar.gz
Add extern "C" to unnamed struct.
Diffstat (limited to 'tests/amd64check.c')
-rw-r--r--tests/amd64check.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/amd64check.c b/tests/amd64check.c
index 1b28d8c7a..9fd0e904b 100644
--- a/tests/amd64check.c
+++ b/tests/amd64check.c
@@ -50,12 +50,18 @@ mp_limb_t calling_conventions_values[23] =
#define RFLAGS 22
/* values to check */
+#ifdef __cplusplus
+extern "C" {
+#endif
struct {
int control;
int status;
int tag;
int other[4];
} calling_conventions_fenv;
+#ifdef __cplusplus
+}
+#endif
const char *regname[6] = {"rbx", "rbp", "r12", "r13", "r14", "r15"};