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/integration.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcrystfel/src/integration.h') diff --git a/libcrystfel/src/integration.h b/libcrystfel/src/integration.h index 2c5773c6..84c1b900 100644 --- a/libcrystfel/src/integration.h +++ b/libcrystfel/src/integration.h @@ -80,6 +80,10 @@ typedef enum { * core of the integration method */ #define INTEGRATION_METHOD_MASK (0xff) +#ifdef __cplusplus +extern "C" { +#endif + extern IntegrationMethod integration_method(const char *t, int *err); extern void integrate_all(struct image *image, IntegrationMethod meth, @@ -94,4 +98,8 @@ extern void integrate_all_2(struct image *image, IntegrationMethod meth, signed int idh, signed int idk, signed int idl); +#ifdef __cplusplus +} +#endif + #endif /* INTEGRATION_H */ -- cgit v1.2.3