2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_CFLOAT
11 #define _LIBCPP_CFLOAT
19 FLT_EVAL_METHOD // C99
22 FLT_HAS_SUBNORM // C11
23 DBL_HAS_SUBNORM // C11
24 LDBL_HAS_SUBNORM // C11
31 FLT_DECIMAL_DIG // C11
32 DBL_DECIMAL_DIG // C11
33 LDBL_DECIMAL_DIG // C11
72 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
73 # include <__cxx03/cfloat>
79 # ifndef _LIBCPP_FLOAT_H
80 # error <cfloat> tried including <float.h> but didn't find libc++'s <float.h> header. \
81 This usually means that your header search paths are not configured properly. \
82 The header search paths should contain the C++ Standard Library headers before \
83 any C Standard Library, and you are probably using compiler flags that make that \
87 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
88 # pragma GCC system_header
90 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
92 #endif // _LIBCPP_CFLOAT