From feba6242e46fe00dcc4b098df808db906575336d Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 12 Aug 2022 19:18:29 +0200 Subject: [PATCH] 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. --- include/openlibm_fenv_sh3eb.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/openlibm_fenv_sh3eb.h b/include/openlibm_fenv_sh3eb.h index 8898ff9..9c45ce8 100644 --- a/include/openlibm_fenv_sh3eb.h +++ b/include/openlibm_fenv_sh3eb.h @@ -30,7 +30,6 @@ #define _FENV_H_ #include -#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_ */