File indexing completed on 2024-06-16 04:24:17
0001 /* 0002 SPDX-FileCopyrightText: 2023 Igor Kushnir <igorkuo@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEV_CLANG_SUPPORT_ADDITIONAL_FLOATING_TYPES_H 0008 #define KDEV_CLANG_SUPPORT_ADDITIONAL_FLOATING_TYPES_H 0009 0010 #pragma clang system_header 0011 0012 // This file is automatically included by KDevelop's Clang backend for C/C++ projects to improve compatibility with GCC. 0013 // This is required to remove parse errors in GCC headers when using a GCC toolchain. 0014 0015 #ifdef __cplusplus 0016 inline namespace __KDevelopClangGccCompat { 0017 #endif 0018 0019 typedef long double __float80; 0020 0021 #if __GNUC__ >= 13 || !defined(__cplusplus) 0022 // based on bits/floatn-common.h from glibc 0023 typedef float _Float32; 0024 typedef double _Float32x; 0025 typedef double _Float64; 0026 typedef long double _Float64x; 0027 0028 typedef __float128 _Float128; 0029 #endif 0030 0031 #ifdef __cplusplus 0032 } 0033 #endif 0034 0035 #endif // KDEV_CLANG_SUPPORT_ADDITIONAL_FLOATING_TYPES_H