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/grainspotter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcrystfel/src/grainspotter.h') diff --git a/libcrystfel/src/grainspotter.h b/libcrystfel/src/grainspotter.h index 2e308a1c..b6a83725 100644 --- a/libcrystfel/src/grainspotter.h +++ b/libcrystfel/src/grainspotter.h @@ -35,6 +35,10 @@ #include "cell.h" +#ifdef __cplusplus +extern "C" { +#endif + extern IndexingPrivate *grainspotter_prepare(IndexingMethod *indm, UnitCell *cell, struct detector *det, @@ -45,5 +49,8 @@ extern void grainspotter_cleanup(IndexingPrivate *pp); extern int grainspotter_index(struct image *image, IndexingPrivate *p); +#ifdef __cplusplus +} +#endif #endif /* GRAINSPOTTER_H */ -- cgit v1.2.3