[Gmp-commit] /var/hg/gmp: Make demos/expr/expr.h usable in C++ code.

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 12 15:12:10 UTC 2014


details:   /var/hg/gmp/rev/5c7513449427
changeset: 16185:5c7513449427
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun Jan 12 16:12:06 2014 +0100
description:
Make demos/expr/expr.h usable in C++ code.

diffstat:

 ChangeLog         |  4 ++++
 demos/expr/expr.h |  8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diffs (34 lines):

diff -r 45c5c0bd3341 -r 5c7513449427 ChangeLog
--- a/ChangeLog	Sat Jan 11 02:08:11 2014 +0100
+++ b/ChangeLog	Sun Jan 12 16:12:06 2014 +0100
@@ -1,3 +1,7 @@
+2014-01-12  Marc Glisse  <marc.glisse at inria.fr>
+
+	* demos/expr/expr.h: Add extern "C" for C++.
+
 2014-01-11  Torbjorn Granlund  <tege at gmplib.org>
 
 	* doc/gmp.texi (Notes for Particular Systems): Add items about old
diff -r 45c5c0bd3341 -r 5c7513449427 demos/expr/expr.h
--- a/demos/expr/expr.h	Sat Jan 11 02:08:11 2014 +0100
+++ b/demos/expr/expr.h	Sun Jan 12 16:12:06 2014 +0100
@@ -98,6 +98,10 @@
 #define MPEXPR_TYPE_OPERATOR       0x2000
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void (*mpexpr_fun_t) (void);
 
 struct mpexpr_operator_t {
@@ -120,4 +124,8 @@
 		const char *, size_t, mpz_srcptr [26]);
 int mpz_expr (mpz_ptr, int, const char *, ...);
 
+#ifdef __cplusplus
+} /* extern "C" */
 #endif
+
+#endif


More information about the gmp-commit mailing list