Add macro for deprecation

This commit is contained in:
Shahram Najm 2014-10-16 13:34:55 +01:00
parent b46fc0ac03
commit 30eee55efd
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@ extern "C" {
#endif #endif
#include <math.h> #include <math.h>
#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) #define GRIB_API_VERSION (GRIB_API_MAJOR_VERSION*10000+GRIB_API_MINOR_VERSION*100+GRIB_API_REVISION_VERSION)
/* sections */ /* sections */