Fix compilation of gcc when using openlibm as system libm (#190)

For some sad reason, gcc poisons LONG_DOUBLE in sreal.c. The identifier has been changed to OLM_LONG_DOUBLE.
This commit is contained in:
Jeremy Soller 2019-01-14 12:53:14 -07:00 committed by Alex Arslan
parent 0f22aeb0a9
commit f24b1bfe55
8 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@
#endif
#ifndef __arm__
#define LONG_DOUBLE
#define OLM_LONG_DOUBLE
#endif
#ifndef __pure2

View File

@ -72,7 +72,7 @@ __fpclassifyf(float f)
}
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__fpclassifyl(long double e)
{

View File

@ -49,7 +49,7 @@ __isfinitef(float f)
return (u.bits.exp != 255);
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__isfinitel(long double e)
{

View File

@ -51,7 +51,7 @@ __isinff(float f)
return (u.bits.exp == 255 && u.bits.man == 0);
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__isinfl(long double e)
{

View File

@ -52,7 +52,7 @@ __isnanf(float f)
return (u.bits.exp == 255 && u.bits.man != 0);
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__isnanl(long double e)
{

View File

@ -49,7 +49,7 @@ __isnormalf(float f)
return (u.bits.exp != 0 && u.bits.exp != 255);
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__isnormall(long double e)
{

View File

@ -20,7 +20,7 @@
#define LDBL_INFNAN_EXP (LDBL_MAX_EXP * 2 - 1)
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT float
nexttowardf(float x, long double y)
{

View File

@ -49,7 +49,7 @@ __signbitf(float f)
return (u.bits.sign);
}
#ifdef LONG_DOUBLE
#ifdef OLM_LONG_DOUBLE
OLM_DLLEXPORT int
__signbitl(long double e)
{