math: define _GNU_SOURCE when implementing non-standard math functions
authorSzabolcs Nagy <nsz@port70.net>
Thu, 12 Dec 2013 03:42:11 +0000 (03:42 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 12 Dec 2013 03:42:11 +0000 (03:42 +0000)
this makes the prototypes in math.h are visible so they are checked agaist
the function definitions

src/math/j0f.c
src/math/j1f.c
src/math/scalb.c
src/math/scalbf.c
src/math/sincos.c
src/math/sincosf.c

index 4b0ee3b..45883dc 100644 (file)
@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 static float pzerof(float), qzerof(float);
index 6abde34..58875af 100644 (file)
@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 static float ponef(float), qonef(float);
index a54bdf2..efe69e6 100644 (file)
@@ -15,6 +15,7 @@
  * should use scalbn() instead.
  */
 
+#define _GNU_SOURCE
 #include <math.h>
 
 double scalb(double x, double fn)
index 9436497..f44ed5b 100644 (file)
@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include <math.h>
 
 float scalbf(float x, float fn)
index 49f8a09..35b2d92 100644 (file)
@@ -10,6 +10,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 void sincos(double x, double *sin, double *cos)
index 1b50f01..f8ca723 100644 (file)
@@ -14,6 +14,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 /* Small multiples of pi/2 rounded to double precision. */