From 22ef3e81aa422b47ea9b088a98fcce061ef4b918 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 11 Jan 2016 15:53:46 +0100 Subject: [PATCH] [g2clib] Make C functions available in C++ modules --- src/plugins/weatherdata/gfs/g2clib/grib2.h | 9 +++++++++ 1 file changed, 9 insertions(+) mode change 100755 => 100644 src/plugins/weatherdata/gfs/g2clib/grib2.h diff --git a/src/plugins/weatherdata/gfs/g2clib/grib2.h b/src/plugins/weatherdata/gfs/g2clib/grib2.h old mode 100755 new mode 100644 index 432a11f78..7d40f349c --- a/src/plugins/weatherdata/gfs/g2clib/grib2.h +++ b/src/plugins/weatherdata/gfs/g2clib/grib2.h @@ -1,5 +1,10 @@ #ifndef _grib2_H #define _grib2_H + +#ifdef __cplusplus +extern "C" { +#endif + #include #define G2_VERSION "g2clib-1.5.0" @@ -245,5 +250,9 @@ int pack_gp(g2int *, g2int *, g2int *, g2int *, g2int *, g2int *, g2int *, g2int *, g2int *, g2int *, g2int *); +#ifdef __cplusplus +} +#endif + #endif /* _grib2_H */