mirror of https://github.com/ecmwf/eccodes.git
ECC-777: Compiling with gcc and -std=c99 fails
This commit is contained in:
parent
e30031747c
commit
b2ff8475bf
|
@ -21,6 +21,14 @@
|
|||
*/
|
||||
#define EFDEBUG 0
|
||||
|
||||
#ifndef LLONG_MAX
|
||||
#define LLONG_MAX LONG_MAX
|
||||
#endif
|
||||
#ifndef ULLONG_MAX
|
||||
#define ULLONG_MAX ULONG_MAX
|
||||
#endif
|
||||
|
||||
|
||||
typedef long long Fraction_value_type;
|
||||
|
||||
typedef struct Fraction_type {
|
||||
|
|
|
@ -113,12 +113,13 @@ static void test_reduced_gg(int remove_local_def, int edition, const char* packi
|
|||
h2 = grib_util_set_spec(handle, &spec, &packing_spec, set_spec_flags, values, outlen, &err);
|
||||
assert(err == GRIB_INTERNAL_ERROR);
|
||||
assert(!h2);
|
||||
|
||||
#ifdef INFINITY
|
||||
packing_spec.accuracy=GRIB_UTIL_ACCURACY_USE_PROVIDED_BITS_PER_VALUES;
|
||||
values[0] = INFINITY;
|
||||
h2 = grib_util_set_spec(handle, &spec, &packing_spec, set_spec_flags, values, outlen, &err);
|
||||
assert(err == GRIB_ENCODING_ERROR);
|
||||
assert(!h2);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Write out the message to the output file */
|
||||
|
|
Loading…
Reference in New Issue