[CRT] Fix CRT headers a bit

* Remove unused internal version of float.h
* Define _STATIC_ASSERT in crtdefs.h
* Add some missing declarations
This commit is contained in:
Timo Kreuzer 2021-07-28 10:25:22 +02:00
parent 0f3d052af9
commit b05cc36208
9 changed files with 28 additions and 189 deletions

View file

@ -182,6 +182,15 @@
#define __crt_typefix(ctype)
#ifndef _STATIC_ASSERT
#ifdef __cplusplus
#define _STATIC_ASSERT(expr) static_assert((expr), #expr)
#elif defined(__clang__) || defined(__GNUC__)
#define _STATIC_ASSERT(expr) _Static_assert((expr), #expr)
#else
#define _STATIC_ASSERT(expr) extern char (*__static_assert__(void)) [(expr) ? 1 : -1]
#endif
#endif /* _STATIC_ASSERT */
/** Deprecated ***************************************************************/