summaryrefslogtreecommitdiffstats
path: root/c_layer
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2017-02-23 17:52:20 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2017-02-23 17:52:20 -0500
commit92d0e6a1cb1856137567782a9a73f2d0c38585c1 (patch)
treeefc41bd32e3a4e318eb630796cd77cf24b39c61f /c_layer
parentb7fb8538030229bfb77dde15f76197f59244c635 (diff)
downloadpyisda-92d0e6a1cb1856137567782a9a73f2d0c38585c1.tar.gz
C++ name mangling
Diffstat (limited to 'c_layer')
-rw-r--r--c_layer/cdsbootstrap.h8
1 files changed, 8 insertions, 0 deletions
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