lib/libm: Define _IEEE_LIBM only if not set.

fdilibm was originally meant to see _IEEE_LIBM defined from outside the
libm code, not it being hardcoded in.  Picolibc assumes this assumption
holds true and attempts to define itself, conflicting with the existing
definition.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
Alessandro Gatti 2024-06-01 11:49:38 +02:00 committed by Damien George
parent ace08c3978
commit d7aa2fe9d7
2 changed files with 4 additions and 0 deletions

View File

@ -24,7 +24,9 @@
*/
#include "fdlibm.h"
#ifndef _IEEE_LIBM
#define _IEEE_LIBM 1
#endif
#ifdef __STDC__
float lgammaf(float x)

View File

@ -24,7 +24,9 @@
#include "math.h"
#include "fdlibm.h"
#ifndef _IEEE_LIBM
#define _IEEE_LIBM 1
#endif
#ifdef __STDC__
float tgammaf(float x)