diff options
author | Colin Cross <ccross@android.com> | 2021-08-16 15:51:59 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-08-16 16:44:24 -0700 |
commit | 4c5595c968a1cf2211edfb2817009af6d5bc0522 (patch) | |
tree | 1bf81f53721d1fab5f1bd0cbe6c2e1d5c6274616 /tests/fenv_test.cpp | |
parent | 14d15076199992f71997a1147f41bdfc2fd192ef (diff) | |
download | bionic-4c5595c968a1cf2211edfb2817009af6d5bc0522.tar.gz |
Replace local MUSL define with global ANDROID_HOST_MUSL
Bug: 190084016
Test: m USE_HOST_MUSL=true bionic-unit-tests-glibc
Change-Id: I56b23576cb24912112d2ae56d8ecc2e3716982fe
Diffstat (limited to 'tests/fenv_test.cpp')
-rw-r--r-- | tests/fenv_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fenv_test.cpp b/tests/fenv_test.cpp index ea3f53902..c5b5eca29 100644 --- a/tests/fenv_test.cpp +++ b/tests/fenv_test.cpp @@ -20,6 +20,7 @@ #include <fenv.h> #include <stdint.h> +#include <sys/cdefs.h> static void TestRounding(float expectation1, float expectation2) { // Volatile to prevent compile-time evaluation. @@ -170,7 +171,7 @@ TEST(fenv, fegetexceptflag_fesetexceptflag) { } TEST(fenv, fedisableexcept_fegetexcept) { -#if !defined(MUSL) +#if !defined(ANDROID_HOST_MUSL) feclearexcept(FE_ALL_EXCEPT); ASSERT_EQ(0, fetestexcept(FE_ALL_EXCEPT)); @@ -185,7 +186,7 @@ TEST(fenv, fedisableexcept_fegetexcept) { } TEST(fenv, feenableexcept_fegetexcept) { -#if !defined(MUSL) +#if !defined(ANDROID_HOST_MUSL) #if defined(__aarch64__) || defined(__arm__) // ARM doesn't support this. They used to if you go back far enough, but it was removed in // the Cortex-A8 between r3p1 and r3p2. |