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/crystal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcrystfel/src/crystal.h') diff --git a/libcrystfel/src/crystal.h b/libcrystfel/src/crystal.h index 8c32a87d..11b85e35 100644 --- a/libcrystfel/src/crystal.h +++ b/libcrystfel/src/crystal.h @@ -46,6 +46,9 @@ **/ typedef struct _crystal Crystal; +#ifdef __cplusplus +extern "C" { +#endif extern Crystal *crystal_new(void); extern Crystal *crystal_copy(Crystal *cryst); @@ -72,4 +75,8 @@ extern void crystal_set_osf(Crystal *cryst, double osf); extern void crystal_set_image(Crystal *cryst, struct image *image); extern void crystal_set_mosaicity(Crystal *cryst, double m); +#ifdef __cplusplus +} +#endif + #endif /* CRYSTAL_H */ -- cgit v1.2.3