Misc fixes and improvements

This commit is contained in:
mintsuki 2023-03-23 19:24:51 +01:00
parent b28fd30353
commit 144b9d3571
7 changed files with 30 additions and 20 deletions

12
float.h
View File

@ -1,5 +1,5 @@
#if !defined(_FLOAT_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_FLOAT_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _FLOAT_H 1
#endif
@ -54,6 +54,14 @@
#define DBL_MIN __DBL_MIN__
#define LDBL_MIN __LDBL_MIN__
#define FLT_TRUE_MIN __FLT_DENORM_MIN__
#define DBL_TRUE_MIN __DBL_DENORM_MIN__
#define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
#define FLT_HAS_SUBNORM __FLT_HAS_DENORM__
#define DBL_HAS_SUBNORM __DBL_HAS_DENORM__
#define LDBL_HAS_SUBNORM __LDBL_HAS_DENORM__
#endif
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_LIMITS_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_LIMITS_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _LIMITS_H 1
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_STDALIGN_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_STDALIGN_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _STDALIGN_H 1
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_STDARG_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_STDARG_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _STDARG_H 1
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_STDBOOL_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_STDBOOL_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _STDBOOL_H 1
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_STDDEF_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_STDDEF_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _STDDEF_H 1
#endif

View File

@ -1,5 +1,5 @@
#if !defined(_STDINT_H) || defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(__LIBC_GUARDLESS_INCLUDE)
#if !defined(_STDINT_H) || defined(__LIBC_CXX_WRAP)
#if !defined(__LIBC_CXX_WRAP)
#define _STDINT_H 1
#endif
@ -44,8 +44,10 @@ typedef __INTMAX_TYPE__ intmax_t;
/* Clang and GCC have different mechanisms for INT32_C and friends. */
#ifdef __clang__
# ifndef __LIBC_C_JOIN
# define __LIBC_C_EXPAND_JOIN(x, suffix) x ## suffix
# define __LIBC_C_JOIN(x, suffix) __LIBC_C_EXPAND_JOIN(x, suffix)
# endif
# define INT8_C(x) __LIBC_C_JOIN(x, __INT8_C_SUFFIX__)
# define INT16_C(x) __LIBC_C_JOIN(x, __INT16_C_SUFFIX__)