fenv.h: change guard symbol for extension functions to _DEFAULT_SOURCE

This way, they are available by default when not using a strict
language standard version.

The change is applied to all architectures (except m68k, which doesn't
define them at all).

Fixes #19534

Change-Id: I71238919e50518abaa65fa20365c912a577e3455
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9196
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Joachim Mairböck
2025-04-21 18:56:47 +00:00
committed by Jérôme Duval
parent d6547c7f81
commit fd9622c608
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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