1
0
forked from boostorg/core

Automatically use generic cmath if FP_SUBNORMAL isn't defined

This commit is contained in:
Peter Dimov
2021-09-14 18:57:33 +03:00
parent 2715f9b5d8
commit 177c093151

View File

@ -12,13 +12,13 @@
// Floating point classification and sign manipulation functions // Floating point classification and sign manipulation functions
// Extracted from https://github.com/boostorg/lexical_cast/pull/37 // Extracted from https://github.com/boostorg/lexical_cast/pull/37
// //
// Copyright 2020 Peter Dimov // Copyright 2020, 2021 Peter Dimov
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt // https://www.boost.org/LICENSE_1_0.txt
#include <cmath> #include <cmath>
#if defined(BOOST_CORE_USE_GENERIC_CMATH) #if defined(BOOST_CORE_USE_GENERIC_CMATH) || (!defined(_MSC_VER) && !defined(FP_SUBNORMAL))
#include <boost/cstdint.hpp> #include <boost/cstdint.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>