diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-30 00:12:22 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-30 12:55:42 +0200 |
commit | 279aaeb5c7511cacd5496603a6dbd2901bc8e9af (patch) | |
tree | 600fb04631806a2c174fcc2e9149e2e8bc99a97d /newlib/libc/stdlib/wcsnrtombs.c | |
parent | fbc4a0827b240df450bae96e8704bed980aec5cc (diff) | |
download | cygnal-279aaeb5c7511cacd5496603a6dbd2901bc8e9af.tar.gz cygnal-279aaeb5c7511cacd5496603a6dbd2901bc8e9af.tar.bz2 cygnal-279aaeb5c7511cacd5496603a6dbd2901bc8e9af.zip |
fenv.h: Change fexcept_t to integral type for compatibility
On Linux and in Mingw-w64, fexcept_t is defined as type unsigned short.
There are packages in the wild which rely on the fact that fexcept_t is
an integral type. We're changing the internal handling to use the bits
just as in GLibc, so only the 6 lowest bits are used to reflect the hw
bits. We even change the header file guard to reflect GLibc for compatibility.
* include/fenv.h (_FENV_H): Rename from _FENV_H_ and set to 1 as in
GLibc's header.
(fexcept_t): Change to __uint16_t to be an integral type as in GLibc.
* fenv.cc (fegetexceptflag): Align to the *flagp's type change.
(fesetexceptflag): Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/wcsnrtombs.c')
0 files changed, 0 insertions, 0 deletions