aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/NaNCheck.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/NaNCheck.h b/src/NaNCheck.h
index b3ee8de..bdf6649 100644
--- a/src/NaNCheck.h
+++ b/src/NaNCheck.h
@@ -12,6 +12,11 @@
#ifndef NANCHECKER_NANCHECK_H
#define NANCHECKER_NANCHECK_H 1
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
/* prototypes of exported functions */
int NaNChecker_CheckVarsForNaN (const cGH *GH,
int report_max,
@@ -21,4 +26,8 @@ int NaNChecker_CheckVarsForNaN (const cGH *GH,
int NaNChecker_SetVarsToNaN (const cGH *GH,
const char *vars);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NANCHECKER_NANCHECK_H */