[libc] Fix fexcept_t type to match canonical ABI and API (#113666)
In glibc and musl, fexcept_t is unsigned short int on x86 and unsigned int on other machines that llvm-libc supports. Match that ABI (only different from before on x86) and API (different everywhere as it was previously signed).
This commit is contained in:
parent
cf6ca98481
commit
0c8e12fc64
@ -9,6 +9,10 @@
|
||||
#ifndef LLVM_LIBC_TYPES_FEXCEPT_T_H
|
||||
#define LLVM_LIBC_TYPES_FEXCEPT_T_H
|
||||
|
||||
typedef int fexcept_t;
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
typedef unsigned short int fexcept_t;
|
||||
#else
|
||||
typedef unsigned int fexcept_t;
|
||||
#endif
|
||||
|
||||
#endif // LLVM_LIBC_TYPES_FEXCEPT_T_H
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user