summaryrefslogtreecommitdiff
path: root/demos/expr/expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'demos/expr/expr.h')
-rw-r--r--demos/expr/expr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/expr/expr.h b/demos/expr/expr.h
index 9a69ed219..e9cb31e21 100644
--- a/demos/expr/expr.h
+++ b/demos/expr/expr.h
@@ -98,6 +98,10 @@ along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */
#define MPEXPR_TYPE_OPERATOR 0x2000
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void (*mpexpr_fun_t) (void);
struct mpexpr_operator_t {
@@ -120,4 +124,8 @@ int mpz_expr_a (const struct mpexpr_operator_t *, mpz_ptr, int,
const char *, size_t, mpz_srcptr [26]);
int mpz_expr (mpz_ptr, int, const char *, ...);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif