[libc-commits] [libc] [libc][fenv] Add missing FE_* definitions for some environment. (PR #91519)

via libc-commits libc-commits at lists.llvm.org
Thu Oct 31 09:07:22 PDT 2024


================
@@ -17,10 +17,51 @@
 
 #include <fenv.h>
 
+// In some environment, FE_ALL_EXCEPT is set to 0 and the remaining exceptions
+// FE_* are missing.
+#if (FE_ALL_EXCEPT == 0)
----------------
lntue wrote:

I think we can remove the outer `#if (FE_ALL_EXCEPT == 0)` entirely, just directly check for exception macros individually and set them to 0 if not defined, WDYT ? @nickdesaulniers 

https://github.com/llvm/llvm-project/pull/91519


More information about the libc-commits mailing list