aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/crystal.h
diff options
context:
space:
mode:
authorChuck <chun.hong.yoon@desy.de>2014-06-12 16:08:55 +0200
committerThomas White <taw@physics.org>2014-06-13 11:01:26 +0200
commit40d6969c7a05fe13c3883443d1c9feba6fab30d1 (patch)
tree23ee8a7247612d7860030a909bc4e1e33ba0c1f3 /libcrystfel/src/crystal.h
parent73629ee82c643769ddff3caa437f9e842f353b23 (diff)
Add extern "C" for C++ compatibility
Diffstat (limited to 'libcrystfel/src/crystal.h')
-rw-r--r--libcrystfel/src/crystal.h7
1 files changed, 7 insertions, 0 deletions
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 */