[Gmp-commit] /var/hg/gmp: Minor testsuite fixes when building as C++.

mercurial at gmplib.org mercurial at gmplib.org
Wed Dec 10 21:27:04 UTC 2014


details:   /var/hg/gmp/rev/92f1faa00bfc
changeset: 16537:92f1faa00bfc
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Wed Dec 10 22:25:56 2014 +0100
description:
Minor testsuite fixes when building as C++.

diffstat:

 ChangeLog           |  5 +++++
 tests/cxx/clocale.c |  6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diffs (35 lines):

diff -r 258f82d43113 -r 92f1faa00bfc ChangeLog
--- a/ChangeLog	Tue Dec 09 18:49:13 2014 +0100
+++ b/ChangeLog	Wed Dec 10 22:25:56 2014 +0100
@@ -1,3 +1,8 @@
+2014-12-10  Marc Glisse  <marc.glisse at inria.fr>
+
+	* tests/cxx/clocale.c (localeconv, nl_langinfo): Match glibc's
+	prototype in C++.
+
 2014-12-09  Torbjörn Granlund  <torbjorng at google.com>
 
 	* configure.ac (powerpc): Remove hardwired -mpowerpc, causes clang
diff -r 258f82d43113 -r 92f1faa00bfc tests/cxx/clocale.c
--- a/tests/cxx/clocale.c	Tue Dec 09 18:49:13 2014 +0100
+++ b/tests/cxx/clocale.c	Wed Dec 10 22:25:56 2014 +0100
@@ -44,6 +44,9 @@
 #if HAVE_LOCALECONV
 struct lconv *
 localeconv (void)
+#if defined __cplusplus && defined __GLIBC__
+  throw()
+#endif
 {
   static struct lconv  l;
   l.decimal_point = point_string;
@@ -54,6 +57,9 @@
 #if HAVE_NL_LANGINFO
 char *
 nl_langinfo (nl_item n)
+#if defined __cplusplus && defined __GLIBC__
+  throw()
+#endif
 {
   return point_string;
 }


More information about the gmp-commit mailing list