check for defines instead of guessing

This commit is contained in:
Lev Walkin 2017-10-05 18:07:15 +00:00
parent fb46912955
commit ad4c63dad3
2 changed files with 14 additions and 2 deletions

View File

@ -556,8 +556,14 @@ NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
-4503599627370496.0, 4503599627370496.0,
/* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L
-FLT_MIN, FLT_MIN,
-FLT_MAX, FLT_MAX,
-DBL_MIN, DBL_MIN,
-DBL_MAX, DBL_MAX,
#ifdef FLT_TRUE_MIN
-FLT_TRUE_MIN, FLT_TRUE_MIN,
#endif
#ifdef DBL_TRUE_MIN
-DBL_TRUE_MIN, DBL_TRUE_MIN,
#endif
INFINITY, -INFINITY, NAN};

View File

@ -952,8 +952,14 @@ REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
-4503599627370496.0, 4503599627370496.0,
/* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L
-FLT_MIN, FLT_MIN,
-FLT_MAX, FLT_MAX,
-DBL_MIN, DBL_MIN,
-DBL_MAX, DBL_MAX,
#ifdef FLT_TRUE_MIN
-FLT_TRUE_MIN, FLT_TRUE_MIN,
#endif
#ifdef DBL_TRUE_MIN
-DBL_TRUE_MIN, DBL_TRUE_MIN,
#endif
INFINITY, -INFINITY, NAN};