Simplify rule re PRE RELEASE

This commit is contained in:
Shahram Najm 2019-03-27 12:33:27 +00:00
parent 09a6ab48ad
commit 039ed1d201
2 changed files with 3 additions and 4 deletions

View File

@ -246,11 +246,10 @@ void grib_print_api_version(FILE* out)
ECCODES_MAJOR_VERSION,
ECCODES_MINOR_VERSION,
ECCODES_REVISION_VERSION);
#ifdef ECCODES_PRE_RELEASE
if (ECCODES_MAJOR_VERSION < 1) {
fprintf(out, "%s", " PRE-RELEASE");
}
#endif
}
const char* grib_get_package_name()

View File

@ -65,9 +65,9 @@ int main( int argc,char* argv[])
printf("\n");
printf("%s Version %d.%d.%d",
grib_get_package_name(), major,minor,revision);
#ifdef ECCODES_PRE_RELEASE
if (ECCODES_MAJOR_VERSION < 1) printf(" PRE-RELEASE");
#endif
printf("\n");
printf("\n");
if(context->debug) {