From 7b5ccd5b5297e4a0e413a1517699fbfb5bb575be Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 20 Jul 2013 18:00:42 +0000 Subject: [PATCH] add feature test macros to non-c99 math tests --- src/math/exp10.c | 1 + src/math/exp10f.c | 1 + src/math/exp10l.c | 1 + src/math/j0.c | 2 ++ src/math/j0f.c | 2 ++ src/math/j1.c | 2 ++ src/math/j1f.c | 2 ++ src/math/jn.c | 2 ++ src/math/jnf.c | 2 ++ src/math/lgamma.c | 2 ++ src/math/lgamma_r.c | 2 ++ src/math/lgammaf.c | 2 ++ src/math/lgammaf_r.c | 2 ++ src/math/lgammal.c | 2 ++ src/math/lgammal_r.c | 1 + src/math/pow10.c | 1 + src/math/pow10f.c | 1 + src/math/pow10l.c | 1 + src/math/scalb.c | 2 ++ src/math/scalbf.c | 2 ++ src/math/sincos.c | 1 + src/math/sincosf.c | 1 + src/math/sincosl.c | 1 + src/math/y0.c | 2 ++ src/math/y0f.c | 2 ++ src/math/y1.c | 2 ++ src/math/y1f.c | 2 ++ src/math/yn.c | 2 ++ src/math/ynf.c | 2 ++ 29 files changed, 48 insertions(+) diff --git a/src/math/exp10.c b/src/math/exp10.c index bc76d14..2dd7966 100644 --- a/src/math/exp10.c +++ b/src/math/exp10.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/exp10f.c b/src/math/exp10f.c index 1ca2034..09cafb1 100644 --- a/src/math/exp10f.c +++ b/src/math/exp10f.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/exp10l.c b/src/math/exp10l.c index 2644a4a..a610432 100644 --- a/src/math/exp10l.c +++ b/src/math/exp10l.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/j0.c b/src/math/j0.c index 0eecc56..4e3bc31 100644 --- a/src/math/j0.c +++ b/src/math/j0.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/j0f.c b/src/math/j0f.c index 9166eac..6db0cc8 100644 --- a/src/math/j0f.c +++ b/src/math/j0f.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/j1.c b/src/math/j1.c index d884091..677dc2d 100644 --- a/src/math/j1.c +++ b/src/math/j1.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/j1f.c b/src/math/j1f.c index 53135a0..17119ae 100644 --- a/src/math/j1f.c +++ b/src/math/j1f.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/jn.c b/src/math/jn.c index 2b198d4..7573edc 100644 --- a/src/math/jn.c +++ b/src/math/jn.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/jnf.c b/src/math/jnf.c index ecbc288..e5ae728 100644 --- a/src/math/jnf.c +++ b/src/math/jnf.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/lgamma.c b/src/math/lgamma.c index a838bc8..381e2d3 100644 --- a/src/math/lgamma.c +++ b/src/math/lgamma.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/lgamma_r.c b/src/math/lgamma_r.c index 2a5151e..0324815 100644 --- a/src/math/lgamma_r.c +++ b/src/math/lgamma_r.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c index 265d8d9..d20176b 100644 --- a/src/math/lgammaf.c +++ b/src/math/lgammaf.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/lgammaf_r.c b/src/math/lgammaf_r.c index 3783b99..278bfcf 100644 --- a/src/math/lgammaf_r.c +++ b/src/math/lgammaf_r.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/lgammal.c b/src/math/lgammal.c index e1cdd12..37047f9 100644 --- a/src/math/lgammal.c +++ b/src/math/lgammal.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/lgammal_r.c b/src/math/lgammal_r.c index 5153456..2f4927e 100644 --- a/src/math/lgammal_r.c +++ b/src/math/lgammal_r.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/pow10.c b/src/math/pow10.c index f980ce8..b5d2a83 100644 --- a/src/math/pow10.c +++ b/src/math/pow10.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/pow10f.c b/src/math/pow10f.c index 1a1f172..07cd3c3 100644 --- a/src/math/pow10f.c +++ b/src/math/pow10f.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/pow10l.c b/src/math/pow10l.c index 8cf8478..478f6a7 100644 --- a/src/math/pow10l.c +++ b/src/math/pow10l.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/scalb.c b/src/math/scalb.c index 786736a..b1ea51e 100644 --- a/src/math/scalb.c +++ b/src/math/scalb.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/scalbf.c b/src/math/scalbf.c index 3754282..c249153 100644 --- a/src/math/scalbf.c +++ b/src/math/scalbf.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/sincos.c b/src/math/sincos.c index 47e9eea..94c292d 100644 --- a/src/math/sincos.c +++ b/src/math/sincos.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/sincosf.c b/src/math/sincosf.c index f8a09e1..94e3654 100644 --- a/src/math/sincosf.c +++ b/src/math/sincosf.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/sincosl.c b/src/math/sincosl.c index 8d1e075..82dc65d 100644 --- a/src/math/sincosl.c +++ b/src/math/sincosl.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/y0.c b/src/math/y0.c index d6a3364..adf1416 100644 --- a/src/math/y0.c +++ b/src/math/y0.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/y0f.c b/src/math/y0f.c index 20ebab3..ac10355 100644 --- a/src/math/y0f.c +++ b/src/math/y0f.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/y1.c b/src/math/y1.c index 12e99e5..6bf5135 100644 --- a/src/math/y1.c +++ b/src/math/y1.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/y1f.c b/src/math/y1f.c index 78fa3c4..6c9ab8a 100644 --- a/src/math/y1f.c +++ b/src/math/y1f.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" diff --git a/src/math/yn.c b/src/math/yn.c index 4ac72fa..9dcaa61 100644 --- a/src/math/yn.c +++ b/src/math/yn.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _XOPEN_SOURCE 700 #include #include #include "mtest.h" diff --git a/src/math/ynf.c b/src/math/ynf.c index 436c0fa..f3c2b14 100644 --- a/src/math/ynf.c +++ b/src/math/ynf.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE 1 +#define _GNU_SOURCE 1 #include #include #include "mtest.h" -- 2.20.1