From 92d0e6a1cb1856137567782a9a73f2d0c38585c1 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 23 Feb 2017 17:52:20 -0500 Subject: C++ name mangling --- c_layer/cdsbootstrap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'c_layer') diff --git a/c_layer/cdsbootstrap.h b/c_layer/cdsbootstrap.h index 2e19189..42d298c 100644 --- a/c_layer/cdsbootstrap.h +++ b/c_layer/cdsbootstrap.h @@ -4,6 +4,10 @@ #include "isda/contingentleg.h" #include "stdio.h" +#ifdef __cplusplus +extern "C" +{ +#endif #define SUCCESS 0 #define FAILURE -1 @@ -24,3 +28,7 @@ typedef struct int cdsBootstrapPointFunction(double hazardRate, void *data, double *pv); + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3-70-g09d2