summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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