diff --git a/src/apt.h b/src/apt.h index 512b3c0..4a44037 100644 --- a/src/apt.h +++ b/src/apt.h @@ -21,6 +21,10 @@ #ifndef APT_H #define APT_H +#ifdef __cplusplus +extern "C" { +#endif + #if defined (__GNUC__) && (__GNUC__ >= 4) #define APT_API __attribute__((visibility("default"))) #elif defined (_MSC_VER) @@ -70,4 +74,8 @@ apt_rgb_t APT_API apt_RGBcomposite(apt_rgb_t top, float top_a, apt_rgb_t bottom, extern char APT_API apt_TempPalette[256*3]; extern char APT_API apt_PrecipPalette[58*3]; +#ifdef __cplusplus +} +#endif + #endif