summaryrefslogtreecommitdiff
path: root/tests/mpc-tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mpc-tests.h')
-rw-r--r--tests/mpc-tests.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mpc-tests.h b/tests/mpc-tests.h
index 74e5fa4..d1ce586 100644
--- a/tests/mpc-tests.h
+++ b/tests/mpc-tests.h
@@ -43,9 +43,15 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
} \
} while (0)
+#if defined (__cplusplus)
+extern "C" {
+#endif
__MPC_DECLSPEC int mpc_mul_naive (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
__MPC_DECLSPEC int mpc_mul_karatsuba (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
__MPC_DECLSPEC int mpc_fma_naive (mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t);
+#if defined (__cplusplus)
+}
+#endif
/* end pieces copied from mpc-impl.h */
#define MPC_OUT(x) \