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:
committed by
Jérôme Duval
parent
d6547c7f81
commit
fd9622c608
@@ -179,7 +179,7 @@ feupdateenv(const fenv_t *__envp)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
feenableexcept(int __mask)
|
feenableexcept(int __mask)
|
||||||
@@ -212,7 +212,7 @@ fegetexcept(void)
|
|||||||
return ((__fpsr & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
return ((__fpsr & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ feupdateenv(const fenv_t *__envp)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
/* We currently provide no external definitions of the functions below. */
|
/* We currently provide no external definitions of the functions below. */
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ fegetexcept(void)
|
|||||||
return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ feupdateenv(const fenv_t *__envp)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
feenableexcept(int __mask)
|
feenableexcept(int __mask)
|
||||||
@@ -263,7 +263,7 @@ fegetexcept(void)
|
|||||||
return ((__r.__bits.__reg & _ENABLE_MASK) << _FPUSW_SHIFT);
|
return ((__r.__bits.__reg & _ENABLE_MASK) << _FPUSW_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ feupdateenv(const fenv_t *__envp)
|
|||||||
}
|
}
|
||||||
#endif /* !__riscv_float_abi_soft */
|
#endif /* !__riscv_float_abi_soft */
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
/* We currently provide no external definitions of the functions below. */
|
/* We currently provide no external definitions of the functions below. */
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ fegetexcept(void)
|
|||||||
}
|
}
|
||||||
#endif /* !__riscv_float_abi_soft */
|
#endif /* !__riscv_float_abi_soft */
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ feupdateenv(const fenv_t *__envp)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
/* We currently provide no external definitions of the functions below. */
|
/* We currently provide no external definitions of the functions below. */
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ fegetexcept(void)
|
|||||||
return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
return ((__r & _ENABLE_MASK) >> _FPUSW_SHIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ fesetenv(const fenv_t *__envp)
|
|||||||
|
|
||||||
int feupdateenv(const fenv_t *__envp);
|
int feupdateenv(const fenv_t *__envp);
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
int feenableexcept(int __mask);
|
int feenableexcept(int __mask);
|
||||||
int fedisableexcept(int __mask);
|
int fedisableexcept(int __mask);
|
||||||
@@ -245,7 +245,7 @@ fegetexcept(void)
|
|||||||
return (~__control & FE_ALL_EXCEPT);
|
return (~__control & FE_ALL_EXCEPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ fesetenv(const fenv_t *__envp)
|
|||||||
|
|
||||||
int feupdateenv(const fenv_t *__envp);
|
int feupdateenv(const fenv_t *__envp);
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#ifdef _DEFAULT_SOURCE
|
||||||
|
|
||||||
int feenableexcept(int __mask);
|
int feenableexcept(int __mask);
|
||||||
int fedisableexcept(int __mask);
|
int fedisableexcept(int __mask);
|
||||||
@@ -211,7 +211,7 @@ fegetexcept(void)
|
|||||||
return (~__control & FE_ALL_EXCEPT);
|
return (~__control & FE_ALL_EXCEPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __BSD_VISIBLE */
|
#endif /* _DEFAULT_SOURCE */
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user