Misc fixes and improvements
This commit is contained in:
parent
b28fd30353
commit
144b9d3571
12
float.h
12
float.h
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_FLOAT_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_FLOAT_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _FLOAT_H 1
|
#define _FLOAT_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -54,6 +54,14 @@
|
|||||||
#define DBL_MIN __DBL_MIN__
|
#define DBL_MIN __DBL_MIN__
|
||||||
#define LDBL_MIN __LDBL_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
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
4
limits.h
4
limits.h
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_LIMITS_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_LIMITS_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _LIMITS_H 1
|
#define _LIMITS_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_STDALIGN_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_STDALIGN_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _STDALIGN_H 1
|
#define _STDALIGN_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
4
stdarg.h
4
stdarg.h
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_STDARG_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_STDARG_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _STDARG_H 1
|
#define _STDARG_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_STDBOOL_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_STDBOOL_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _STDBOOL_H 1
|
#define _STDBOOL_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
4
stddef.h
4
stddef.h
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_STDDEF_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_STDDEF_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _STDDEF_H 1
|
#define _STDDEF_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
18
stdint.h
18
stdint.h
@ -1,5 +1,5 @@
|
|||||||
#if !defined(_STDINT_H) || defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(_STDINT_H) || defined(__LIBC_CXX_WRAP)
|
||||||
#if !defined(__LIBC_GUARDLESS_INCLUDE)
|
#if !defined(__LIBC_CXX_WRAP)
|
||||||
#define _STDINT_H 1
|
#define _STDINT_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -44,15 +44,17 @@ typedef __INTMAX_TYPE__ intmax_t;
|
|||||||
|
|
||||||
/* Clang and GCC have different mechanisms for INT32_C and friends. */
|
/* Clang and GCC have different mechanisms for INT32_C and friends. */
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# define __LIBC_C_EXPAND_JOIN(x, suffix) x ## suffix
|
# ifndef __LIBC_C_JOIN
|
||||||
# define __LIBC_C_JOIN(x, suffix) __LIBC_C_EXPAND_JOIN(x, suffix)
|
# 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 INT8_C(x) __LIBC_C_JOIN(x, __INT8_C_SUFFIX__)
|
||||||
# define INT16_C(x) __LIBC_C_JOIN(x, __INT16_C_SUFFIX__)
|
# define INT16_C(x) __LIBC_C_JOIN(x, __INT16_C_SUFFIX__)
|
||||||
# define INT32_C(x) __LIBC_C_JOIN(x, __INT32_C_SUFFIX__)
|
# define INT32_C(x) __LIBC_C_JOIN(x, __INT32_C_SUFFIX__)
|
||||||
# define INT64_C(x) __LIBC_C_JOIN(x, __INT64_C_SUFFIX__)
|
# define INT64_C(x) __LIBC_C_JOIN(x, __INT64_C_SUFFIX__)
|
||||||
|
|
||||||
# define UINT8_C(x) __LIBC_C_JOIN(x, __UINT8_C_SUFFIX__)
|
# define UINT8_C(x) __LIBC_C_JOIN(x, __UINT8_C_SUFFIX__)
|
||||||
# define UINT16_C(x) __LIBC_C_JOIN(x, __UINT16_C_SUFFIX__)
|
# define UINT16_C(x) __LIBC_C_JOIN(x, __UINT16_C_SUFFIX__)
|
||||||
# define UINT32_C(x) __LIBC_C_JOIN(x, __UINT32_C_SUFFIX__)
|
# define UINT32_C(x) __LIBC_C_JOIN(x, __UINT32_C_SUFFIX__)
|
||||||
# define UINT64_C(x) __LIBC_C_JOIN(x, __UINT64_C_SUFFIX__)
|
# define UINT64_C(x) __LIBC_C_JOIN(x, __UINT64_C_SUFFIX__)
|
||||||
@ -60,12 +62,12 @@ typedef __INTMAX_TYPE__ intmax_t;
|
|||||||
# define INTMAX_C(x) __LIBC_C_JOIN(x, __INTMAX_C_SUFFIX__)
|
# define INTMAX_C(x) __LIBC_C_JOIN(x, __INTMAX_C_SUFFIX__)
|
||||||
# define UINTMAX_C(x) __LIBC_C_JOIN(x, __UINTMAX_C_SUFFIX__)
|
# define UINTMAX_C(x) __LIBC_C_JOIN(x, __UINTMAX_C_SUFFIX__)
|
||||||
#else
|
#else
|
||||||
# define INT8_C(x) __INT8_C(x)
|
# define INT8_C(x) __INT8_C(x)
|
||||||
# define INT16_C(x) __INT16_C(x)
|
# define INT16_C(x) __INT16_C(x)
|
||||||
# define INT32_C(x) __INT32_C(x)
|
# define INT32_C(x) __INT32_C(x)
|
||||||
# define INT64_C(x) __INT64_C(x)
|
# define INT64_C(x) __INT64_C(x)
|
||||||
|
|
||||||
# define UINT8_C(x) __UINT8_C(x)
|
# define UINT8_C(x) __UINT8_C(x)
|
||||||
# define UINT16_C(x) __UINT16_C(x)
|
# define UINT16_C(x) __UINT16_C(x)
|
||||||
# define UINT32_C(x) __UINT32_C(x)
|
# define UINT32_C(x) __UINT32_C(x)
|
||||||
# define UINT64_C(x) __UINT64_C(x)
|
# define UINT64_C(x) __UINT64_C(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user