summaryrefslogtreecommitdiff
path: root/tests/mpc-tests.h
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-05 08:20:05 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-07-05 08:20:05 +0000
commit0a5f9840d4778b15543716787ef81be1cf627bca (patch)
treef2f7d1afc36ceed2c3b71ac89d06c2dd8c3ebaaf /tests/mpc-tests.h
parente519e2b49bfeac77d395ce65af4cbedae2e47485 (diff)
downloadmpc-0a5f9840d4778b15543716787ef81be1cf627bca.tar.gz
mpc-tests.h, tfma.c, tmul.c: small changes to allow compilation with c++
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1222 211d60ee-9f03-0410-a15a-8952a2c7a4e4
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) \