diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2014-01-12 16:12:06 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2014-01-12 16:12:06 +0100 |
commit | 89a2919ec91c73e0377830d208435a895062972c (patch) | |
tree | 68b9b60f75344b38d5a85c263b51466637d718fe /demos | |
parent | cfe23587621266c1f6213a0db2cb16070639b436 (diff) | |
download | gmp-89a2919ec91c73e0377830d208435a895062972c.tar.gz |
Make demos/expr/expr.h usable in C++ code.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/expr/expr.h | 8 |
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 |