projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d2537b
)
add feature test macros to non-c99 math tests
author
Szabolcs Nagy
<nsz@port70.net>
Sat, 20 Jul 2013 18:00:42 +0000
(18:00 +0000)
committer
Szabolcs Nagy
<nsz@port70.net>
Sat, 20 Jul 2013 18:00:42 +0000
(18:00 +0000)
29 files changed:
src/math/exp10.c
patch
|
blob
|
history
src/math/exp10f.c
patch
|
blob
|
history
src/math/exp10l.c
patch
|
blob
|
history
src/math/j0.c
patch
|
blob
|
history
src/math/j0f.c
patch
|
blob
|
history
src/math/j1.c
patch
|
blob
|
history
src/math/j1f.c
patch
|
blob
|
history
src/math/jn.c
patch
|
blob
|
history
src/math/jnf.c
patch
|
blob
|
history
src/math/lgamma.c
patch
|
blob
|
history
src/math/lgamma_r.c
patch
|
blob
|
history
src/math/lgammaf.c
patch
|
blob
|
history
src/math/lgammaf_r.c
patch
|
blob
|
history
src/math/lgammal.c
patch
|
blob
|
history
src/math/lgammal_r.c
patch
|
blob
|
history
src/math/pow10.c
patch
|
blob
|
history
src/math/pow10f.c
patch
|
blob
|
history
src/math/pow10l.c
patch
|
blob
|
history
src/math/scalb.c
patch
|
blob
|
history
src/math/scalbf.c
patch
|
blob
|
history
src/math/sincos.c
patch
|
blob
|
history
src/math/sincosf.c
patch
|
blob
|
history
src/math/sincosl.c
patch
|
blob
|
history
src/math/y0.c
patch
|
blob
|
history
src/math/y0f.c
patch
|
blob
|
history
src/math/y1.c
patch
|
blob
|
history
src/math/y1f.c
patch
|
blob
|
history
src/math/yn.c
patch
|
blob
|
history
src/math/ynf.c
patch
|
blob
|
history
diff --git
a/src/math/exp10.c
b/src/math/exp10.c
index
bc76d14
..
2dd7966
100644
(file)
--- a/
src/math/exp10.c
+++ b/
src/math/exp10.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/exp10f.c
b/src/math/exp10f.c
index
1ca2034
..
09cafb1
100644
(file)
--- a/
src/math/exp10f.c
+++ b/
src/math/exp10f.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/exp10l.c
b/src/math/exp10l.c
index
2644a4a
..
a610432
100644
(file)
--- a/
src/math/exp10l.c
+++ b/
src/math/exp10l.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/j0.c
b/src/math/j0.c
index
0eecc56
..
4e3bc31
100644
(file)
--- a/
src/math/j0.c
+++ b/
src/math/j0.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/j0f.c
b/src/math/j0f.c
index
9166eac
..
6db0cc8
100644
(file)
--- a/
src/math/j0f.c
+++ b/
src/math/j0f.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/j1.c
b/src/math/j1.c
index
d884091
..
677dc2d
100644
(file)
--- a/
src/math/j1.c
+++ b/
src/math/j1.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/j1f.c
b/src/math/j1f.c
index
53135a0
..
17119ae
100644
(file)
--- a/
src/math/j1f.c
+++ b/
src/math/j1f.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/jn.c
b/src/math/jn.c
index
2b198d4
..
7573edc
100644
(file)
--- a/
src/math/jn.c
+++ b/
src/math/jn.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/jnf.c
b/src/math/jnf.c
index
ecbc288
..
e5ae728
100644
(file)
--- a/
src/math/jnf.c
+++ b/
src/math/jnf.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgamma.c
b/src/math/lgamma.c
index
a838bc8
..
381e2d3
100644
(file)
--- a/
src/math/lgamma.c
+++ b/
src/math/lgamma.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgamma_r.c
b/src/math/lgamma_r.c
index
2a5151e
..
0324815
100644
(file)
--- 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 <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgammaf.c
b/src/math/lgammaf.c
index
265d8d9
..
d20176b
100644
(file)
--- a/
src/math/lgammaf.c
+++ b/
src/math/lgammaf.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgammaf_r.c
b/src/math/lgammaf_r.c
index
3783b99
..
278bfcf
100644
(file)
--- 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 <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgammal.c
b/src/math/lgammal.c
index
e1cdd12
..
37047f9
100644
(file)
--- a/
src/math/lgammal.c
+++ b/
src/math/lgammal.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/lgammal_r.c
b/src/math/lgammal_r.c
index
5153456
..
2f4927e
100644
(file)
--- a/
src/math/lgammal_r.c
+++ b/
src/math/lgammal_r.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/pow10.c
b/src/math/pow10.c
index
f980ce8
..
b5d2a83
100644
(file)
--- a/
src/math/pow10.c
+++ b/
src/math/pow10.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/pow10f.c
b/src/math/pow10f.c
index
1a1f172
..
07cd3c3
100644
(file)
--- a/
src/math/pow10f.c
+++ b/
src/math/pow10f.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/pow10l.c
b/src/math/pow10l.c
index
8cf8478
..
478f6a7
100644
(file)
--- a/
src/math/pow10l.c
+++ b/
src/math/pow10l.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/scalb.c
b/src/math/scalb.c
index
786736a
..
b1ea51e
100644
(file)
--- a/
src/math/scalb.c
+++ b/
src/math/scalb.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/scalbf.c
b/src/math/scalbf.c
index
3754282
..
c249153
100644
(file)
--- a/
src/math/scalbf.c
+++ b/
src/math/scalbf.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/sincos.c
b/src/math/sincos.c
index
47e9eea
..
94c292d
100644
(file)
--- a/
src/math/sincos.c
+++ b/
src/math/sincos.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/sincosf.c
b/src/math/sincosf.c
index
f8a09e1
..
94e3654
100644
(file)
--- a/
src/math/sincosf.c
+++ b/
src/math/sincosf.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/sincosl.c
b/src/math/sincosl.c
index
8d1e075
..
82dc65d
100644
(file)
--- a/
src/math/sincosl.c
+++ b/
src/math/sincosl.c
@@
-1,3
+1,4
@@
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/y0.c
b/src/math/y0.c
index
d6a3364
..
adf1416
100644
(file)
--- a/
src/math/y0.c
+++ b/
src/math/y0.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/y0f.c
b/src/math/y0f.c
index
20ebab3
..
ac10355
100644
(file)
--- a/
src/math/y0f.c
+++ b/
src/math/y0f.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/y1.c
b/src/math/y1.c
index
12e99e5
..
6bf5135
100644
(file)
--- a/
src/math/y1.c
+++ b/
src/math/y1.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/y1f.c
b/src/math/y1f.c
index
78fa3c4
..
6c9ab8a
100644
(file)
--- a/
src/math/y1f.c
+++ b/
src/math/y1f.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/yn.c
b/src/math/yn.c
index
4ac72fa
..
9dcaa61
100644
(file)
--- a/
src/math/yn.c
+++ b/
src/math/yn.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _XOPEN_SOURCE 700
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
diff --git
a/src/math/ynf.c
b/src/math/ynf.c
index
436c0fa
..
f3c2b14
100644
(file)
--- a/
src/math/ynf.c
+++ b/
src/math/ynf.c
@@
-1,3
+1,5
@@
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"
#include <stdint.h>
#include <stdio.h>
#include "mtest.h"