aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.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/cell.h
parent73629ee82c643769ddff3caa437f9e842f353b23 (diff)
Add extern "C" for C++ compatibility
Diffstat (limited to 'libcrystfel/src/cell.h')
-rw-r--r--libcrystfel/src/cell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcrystfel/src/cell.h b/libcrystfel/src/cell.h
index 57741b41..0a512a43 100644
--- a/libcrystfel/src/cell.h
+++ b/libcrystfel/src/cell.h
@@ -99,6 +99,10 @@ typedef struct _unitcell UnitCell;
**/
typedef struct _unitcelltransformation UnitCellTransformation;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern UnitCell *cell_new(void);
extern UnitCell *cell_new_from_cell(UnitCell *orig);
extern void cell_free(UnitCell *cell);
@@ -171,4 +175,8 @@ extern UnitCellTransformation *tfn_inverse(UnitCellTransformation *t);
extern double *tfn_vector(double a, double b, double c);
extern void tfn_free(UnitCellTransformation *t);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* CELL_H */