[Gmp-commit] /var/hg/gmp: Add extern "C" to unnamed struct.

mercurial at gmplib.org mercurial at gmplib.org
Sat Nov 15 14:06:44 UTC 2014


details:   /var/hg/gmp/rev/19797812a209
changeset: 16518:19797812a209
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat Nov 15 15:06:24 2014 +0100
description:
Add extern "C" to unnamed struct.

diffstat:

 ChangeLog          |  5 +++++
 tests/amd64check.c |  6 ++++++
 tests/x86check.c   |  6 ++++++
 3 files changed, 17 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r d79be2404f02 -r 19797812a209 ChangeLog
--- a/ChangeLog	Sat Nov 15 13:22:21 2014 +0100
+++ b/ChangeLog	Sat Nov 15 15:06:24 2014 +0100
@@ -1,3 +1,8 @@
+2014-11-15  Marc Glisse  <marc.glisse at inria.fr>
+
+	* tests/amd64check.c (calling_conventions_fenv): Mark as extern "C".
+	* tests/x86check.c (calling_conventions_fenv): Likewise.
+
 2014-11-13  Hans Wennborg  <hwennborg at google.com>
 
 	* mpn/generic/toom_interpolate_8pts.c: Fix operator precedence in
diff -r d79be2404f02 -r 19797812a209 tests/amd64check.c
--- a/tests/amd64check.c	Sat Nov 15 13:22:21 2014 +0100
+++ b/tests/amd64check.c	Sat Nov 15 15:06:24 2014 +0100
@@ -50,12 +50,18 @@
 #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"};
diff -r d79be2404f02 -r 19797812a209 tests/x86check.c
--- a/tests/x86check.c	Sat Nov 15 13:22:21 2014 +0100
+++ b/tests/x86check.c	Sat Nov 15 15:06:24 2014 +0100
@@ -50,12 +50,18 @@
 
 
 /* values to check */
+#ifdef __cplusplus
+extern "C" {
+#endif
 struct {
   unsigned  control;
   unsigned  status;
   unsigned  tag;
   unsigned  other[4];
 } calling_conventions_fenv;
+#ifdef __cplusplus
+}
+#endif
 
 /* expected values, as per x86call.asm */
 #define VALUE_EBX   0x01234567


More information about the gmp-commit mailing list