diff options
author | Will Newton <will.newton@linaro.org> | 2014-09-16 12:37:04 -0700 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-09-30 15:03:50 +0100 |
commit | dc6fe23ba65714781a3d26270c132c0ca0ca5beb (patch) | |
tree | d44b7f4ca8a8b152531763ae5b1b738895101f6e /math/math.h | |
parent | 85bb81c91b9cf7495aa4d7e567eae2861f54b997 (diff) | |
download | glibc-dc6fe23ba65714781a3d26270c132c0ca0ca5beb.tar.gz glibc-dc6fe23ba65714781a3d26270c132c0ca0ca5beb.tar.xz glibc-dc6fe23ba65714781a3d26270c132c0ca0ca5beb.zip |
stdlib/tst-strtod-round.c: Fix build on ARM
Building this test on ARM fails because the prototypes for the long double variants of the math functions are unavailable. Add an additional include guard to math.h that enables long double math function declarations if _LIBC_TEST is defined and define _LIBC_TEST in stdlib/tst-strtod-round.c. ChangeLog: 2014-09-30 Will Newton <will.newton@linaro.org> * math/math.h: Define long double math functions if _LIBC_TEST is defined. * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
Diffstat (limited to 'math/math.h')
-rw-r--r-- | math/math.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/math/math.h b/math/math.h index 72ec2ca241..dc532b7e74 100644 --- a/math/math.h +++ b/math/math.h @@ -92,7 +92,8 @@ __BEGIN_DECLS # undef __MATH_PRECNAME # if !(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \ - || defined __LDBL_COMPAT + || defined __LDBL_COMPAT \ + || defined _LIBC_TEST # ifdef __LDBL_COMPAT # ifdef __USE_ISOC99 |