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/hdf5-file.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcrystfel/src/hdf5-file.h') 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 */ -- cgit v1.2.3