aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/reax.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/reax.h')
-rw-r--r--libcrystfel/src/reax.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libcrystfel/src/reax.h b/libcrystfel/src/reax.h
index 4720709e..b5c6d058 100644
--- a/libcrystfel/src/reax.h
+++ b/libcrystfel/src/reax.h
@@ -38,6 +38,10 @@
#include "beam-parameters.h"
#include "detector.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef HAVE_FFTW
extern IndexingPrivate *reax_prepare(IndexingMethod *indm, UnitCell *cell,
@@ -65,7 +69,10 @@ static int reax_index(IndexingPrivate *pp, struct image *image)
{
}
-
#endif /* HAVE_FFTW */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* REAX_H */