From 40d6969c7a05fe13c3883443d1c9feba6fab30d1 Mon Sep 17 00:00:00 2001 From: Chuck Date: Thu, 12 Jun 2014 16:08:55 +0200 Subject: Add extern "C" for C++ compatibility --- libcrystfel/src/reax.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/reax.h') 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 */ -- cgit v1.2.3