From e8ccfce2dc3146c03fa98ef6b537ee51340dddc5 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 13 Oct 2019 01:24:53 +0300 Subject: [PATCH] Added check for BOOST_NO_ALIGNMENT for float128 tests. Atomic storage can be implemented without int128 support but when explicit alignment specification is supported. --- test/fallback_api.cpp | 2 +- test/native_api.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fallback_api.cpp b/test/fallback_api.cpp index 2f3788d..e2ec574 100644 --- a/test/fallback_api.cpp +++ b/test/fallback_api.cpp @@ -44,7 +44,7 @@ int main(int, char *[]) test_floating_point_api(); test_floating_point_api(); test_floating_point_api(); -#if defined(BOOST_HAS_INT128) && defined(BOOST_HAS_FLOAT128) +#if (defined(BOOST_HAS_INT128) || !defined(BOOST_NO_ALIGNMENT)) && defined(BOOST_HAS_FLOAT128) test_floating_point_api(); #endif #endif diff --git a/test/native_api.cpp b/test/native_api.cpp index d2bcbf3..faefc24 100644 --- a/test/native_api.cpp +++ b/test/native_api.cpp @@ -49,7 +49,7 @@ int main(int, char *[]) test_floating_point_api(); test_floating_point_api(); test_floating_point_api(); -#if defined(BOOST_HAS_INT128) && defined(BOOST_HAS_FLOAT128) +#if (defined(BOOST_HAS_INT128) || !defined(BOOST_NO_ALIGNMENT)) && defined(BOOST_HAS_FLOAT128) test_floating_point_api(); #endif #endif