diff --git a/headers/posix/arch/arm/fenv.h b/headers/posix/arch/arm/fenv.h index f07e82ed73..308976c024 100644 --- a/headers/posix/arch/arm/fenv.h +++ b/headers/posix/arch/arm/fenv.h @@ -179,7 +179,7 @@ feupdateenv(const fenv_t *__envp) return (0); } -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE static __inline int feenableexcept(int __mask) @@ -212,7 +212,7 @@ fegetexcept(void) return ((__fpsr & _ENABLE_MASK) >> _FPUSW_SHIFT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/arm64/fenv.h b/headers/posix/arch/arm64/fenv.h index 1d197f0b01..322cb71a94 100644 --- a/headers/posix/arch/arm64/fenv.h +++ b/headers/posix/arch/arm64/fenv.h @@ -206,7 +206,7 @@ feupdateenv(const fenv_t *__envp) return (0); } -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE /* We currently provide no external definitions of the functions below. */ @@ -241,7 +241,7 @@ fegetexcept(void) return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/ppc/fenv.h b/headers/posix/arch/ppc/fenv.h index c1993657fb..373cceea30 100644 --- a/headers/posix/arch/ppc/fenv.h +++ b/headers/posix/arch/ppc/fenv.h @@ -226,7 +226,7 @@ feupdateenv(const fenv_t *__envp) return (0); } -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE static __inline int feenableexcept(int __mask) @@ -263,7 +263,7 @@ fegetexcept(void) return ((__r.__bits.__reg & _ENABLE_MASK) << _FPUSW_SHIFT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/riscv64/fenv.h b/headers/posix/arch/riscv64/fenv.h index 5d2776c2b9..15a01bdb77 100644 --- a/headers/posix/arch/riscv64/fenv.h +++ b/headers/posix/arch/riscv64/fenv.h @@ -218,7 +218,7 @@ feupdateenv(const fenv_t *__envp) } #endif /* !__riscv_float_abi_soft */ -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE /* We currently provide no external definitions of the functions below. */ @@ -255,7 +255,7 @@ fegetexcept(void) } #endif /* !__riscv_float_abi_soft */ -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/sparc64/fenv.h b/headers/posix/arch/sparc64/fenv.h index 903d770f3d..1a0b370858 100644 --- a/headers/posix/arch/sparc64/fenv.h +++ b/headers/posix/arch/sparc64/fenv.h @@ -222,7 +222,7 @@ feupdateenv(const fenv_t *__envp) return (0); } -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE /* We currently provide no external definitions of the functions below. */ @@ -257,7 +257,7 @@ fegetexcept(void) return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/x86/fenv.h b/headers/posix/arch/x86/fenv.h index 71b48e22f7..714351c719 100644 --- a/headers/posix/arch/x86/fenv.h +++ b/headers/posix/arch/x86/fenv.h @@ -227,7 +227,7 @@ fesetenv(const fenv_t *__envp) int feupdateenv(const fenv_t *__envp); -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE int feenableexcept(int __mask); int fedisableexcept(int __mask); @@ -245,7 +245,7 @@ fegetexcept(void) return (~__control & FE_ALL_EXCEPT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS diff --git a/headers/posix/arch/x86_64/fenv.h b/headers/posix/arch/x86_64/fenv.h index 9a3df8eb9d..fdef27e398 100644 --- a/headers/posix/arch/x86_64/fenv.h +++ b/headers/posix/arch/x86_64/fenv.h @@ -193,7 +193,7 @@ fesetenv(const fenv_t *__envp) int feupdateenv(const fenv_t *__envp); -#if __BSD_VISIBLE +#ifdef _DEFAULT_SOURCE int feenableexcept(int __mask); int fedisableexcept(int __mask); @@ -211,7 +211,7 @@ fegetexcept(void) return (~__control & FE_ALL_EXCEPT); } -#endif /* __BSD_VISIBLE */ +#endif /* _DEFAULT_SOURCE */ __END_DECLS