aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.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/hdf5-file.h
parent73629ee82c643769ddff3caa437f9e842f353b23 (diff)
Add extern "C" for C++ compatibility
Diffstat (limited to 'libcrystfel/src/hdf5-file.h')
-rw-r--r--libcrystfel/src/hdf5-file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/hdf5-file.h b/libcrystfel/src/hdf5-file.h
index 010abacc..aca00692 100644
--- a/libcrystfel/src/hdf5-file.h
+++ b/libcrystfel/src/hdf5-file.h
@@ -41,6 +41,10 @@ struct copy_hdf5_field;
#include "image.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int hdf5_write(const char *filename, const void *data,
int width, int height, int type);
@@ -69,5 +73,8 @@ extern void copy_hdf5_fields(struct hdfile *f,
extern void add_copy_hdf5_field(struct copy_hdf5_field *copyme,
const char *name);
+#ifdef __cplusplus
+}
+#endif
#endif /* HDF5_H */