diff --git a/src/grib_api.h b/src/grib_api.h index c2d0362a5..807fbfdcb 100644 --- a/src/grib_api.h +++ b/src/grib_api.h @@ -31,6 +31,13 @@ extern "C" { #endif #include +#if defined( __GNUC__) || defined(__clang__) +#define DEPRECATED __attribute__((deprecated)) +#else +#define DEPRECATED +#endif + + #define GRIB_API_VERSION (GRIB_API_MAJOR_VERSION*10000+GRIB_API_MINOR_VERSION*100+GRIB_API_REVISION_VERSION) /* sections */