Browse Source

math: define _GNU_SOURCE when implementing non-standard math functions

this makes the prototypes in math.h are visible so they are checked agaist
the function definitions
Szabolcs Nagy 11 years ago
parent
commit
ec411999a0
6 changed files with 6 additions and 0 deletions
  1. 1 0
      src/math/j0f.c
  2. 1 0
      src/math/j1f.c
  3. 1 0
      src/math/scalb.c
  4. 1 0
      src/math/scalbf.c
  5. 1 0
      src/math/sincos.c
  6. 1 0
      src/math/sincosf.c

+ 1 - 0
src/math/j0f.c

@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 static float pzerof(float), qzerof(float);

+ 1 - 0
src/math/j1f.c

@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 static float ponef(float), qonef(float);

+ 1 - 0
src/math/scalb.c

@@ -15,6 +15,7 @@
  * should use scalbn() instead.
  */
 
+#define _GNU_SOURCE
 #include <math.h>
 
 double scalb(double x, double fn)

+ 1 - 0
src/math/scalbf.c

@@ -13,6 +13,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include <math.h>
 
 float scalbf(float x, float fn)

+ 1 - 0
src/math/sincos.c

@@ -10,6 +10,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 void sincos(double x, double *sin, double *cos)

+ 1 - 0
src/math/sincosf.c

@@ -14,6 +14,7 @@
  * ====================================================
  */
 
+#define _GNU_SOURCE
 #include "libm.h"
 
 /* Small multiples of pi/2 rounded to double precision. */