mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-19 03:55:44 -04:00
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:
parent
ace08c3978
commit
d7aa2fe9d7
@ -24,7 +24,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fdlibm.h"
|
#include "fdlibm.h"
|
||||||
|
#ifndef _IEEE_LIBM
|
||||||
#define _IEEE_LIBM 1
|
#define _IEEE_LIBM 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
float lgammaf(float x)
|
float lgammaf(float x)
|
||||||
|
@ -24,7 +24,9 @@
|
|||||||
|
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "fdlibm.h"
|
#include "fdlibm.h"
|
||||||
|
#ifndef _IEEE_LIBM
|
||||||
#define _IEEE_LIBM 1
|
#define _IEEE_LIBM 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
float tgammaf(float x)
|
float tgammaf(float x)
|
||||||
|
Loading…
Reference in New Issue
Block a user