diff options
author | Gary E. Miller <gem@rellim.com> | 2018-12-26 17:47:17 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-26 17:56:00 -0800 |
commit | e5b493a36673758b02dcb4124b002f4e029053a2 (patch) | |
tree | 5c80c60b520d3eebc2d45fdfa6377e37ed6801c5 /libgps_json.c | |
parent | 931995286ff337b6357b5d96cb864f8e39179d24 (diff) | |
download | gpsd-e5b493a36673758b02dcb4124b002f4e029053a2.tar.gz |
POSIX_C_SOURCE: Not just a linux define. 200112L is a minimum.
Don't force _POSIX_C_SOURCE 200112L, just make it a minimum.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_json.c b/libgps_json.c index 1d1f892b..a1bde226 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -14,13 +14,13 @@ PERMISSIONS ***************************************************************************/ -#ifdef __linux__ +#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L /* isfinite() needs _POSIX_C_SOURCE >= 200112L * isnan(+Inf) is false, isfinite(+Inf) is false * use isfinite() to make sure a float is valid */ #define _POSIX_C_SOURCE 200112L -#endif /* __linux__ */ +#endif #include <stdbool.h> #include <math.h> |