diff options
| author | Alessandro Gatti <a.gatti@frob.it> | 2024-06-01 11:49:38 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-06-06 13:01:42 +1000 |
| commit | d7aa2fe9d7efc30591e22ddcd276e85f1d13e9d2 (patch) | |
| tree | d00338d889b45e007ee20746b1c2a489309301ac /lib/libm | |
| parent | ace08c39786871f4674c2d36a4b59343d64c7603 (diff) | |
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>
Diffstat (limited to 'lib/libm')
| -rw-r--r-- | lib/libm/wf_lgamma.c | 2 | ||||
| -rw-r--r-- | lib/libm/wf_tgamma.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libm/wf_lgamma.c b/lib/libm/wf_lgamma.c index 834a4de48..4b07a7289 100644 --- a/lib/libm/wf_lgamma.c +++ b/lib/libm/wf_lgamma.c @@ -24,7 +24,9 @@ */ #include "fdlibm.h" +#ifndef _IEEE_LIBM #define _IEEE_LIBM 1 +#endif #ifdef __STDC__ float lgammaf(float x) diff --git a/lib/libm/wf_tgamma.c b/lib/libm/wf_tgamma.c index 3ff05f331..1a6c74ca1 100644 --- a/lib/libm/wf_tgamma.c +++ b/lib/libm/wf_tgamma.c @@ -24,7 +24,9 @@ #include "math.h" #include "fdlibm.h" +#ifndef _IEEE_LIBM #define _IEEE_LIBM 1 +#endif #ifdef __STDC__ float tgammaf(float x) |
