fenv: avoid internal includes in user-facing headers

A future cleanup will drastically reduce the set of headers being installed,
and we don't want to install internal headers in particular.
This commit is contained in:
Lephenixnoir 2022-08-12 19:18:29 +02:00
parent 63c74a4b92
commit feba6242e4
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 7 additions and 3 deletions

View File

@ -30,7 +30,6 @@
#define _FENV_H_
#include <stdint.h>
#include "cdefs-compat.h"
#ifndef __fenv_static
#define __fenv_static static
@ -57,7 +56,10 @@ typedef uint32_t fexcept_t;
#define FE_DOWNWARD 0x0003
#define _ROUND_MASK (FE_TONEAREST | FE_DOWNWARD | \
FE_UPWARD | FE_TOWARDZERO)
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif
/* Default floating-point environment */
extern const fenv_t __fe_dfl_env;
@ -89,6 +91,8 @@ int fegetexcept(void);
#endif /* __BSD_VISIBLE */
__END_DECLS
#ifdef __cplusplus
}
#endif
#endif /* !_FENV_H_ */