+2023-11-04 Bruno Haible <bruno@clisp.org>
+
+ fenv-exceptions-state-c99: Fix compilation error on FreeBSD.
+ * lib/fenv.in.h (fegetexceptflag, fesetexceptflag): On FreeBSD, use an
+ rpl_ prefix, to avoid a conflict with an inline definition in FreeBSD's
+ <fenv.h>.
+
2023-11-04 Bruno Haible <bruno@clisp.org>
doc: Update info about Cygwin feraiseexcept bug.
#if @GNULIB_FEGETEXCEPTFLAG@
/* Stores the current floating-point exception status flags denoted
by EXCEPTIONS in *SAVED_FLAGS. */
-# if @REPLACE_FEGETEXCEPTFLAG@
+# if @REPLACE_FEGETEXCEPTFLAG@ || (!@HAVE_FEGETEXCEPTFLAG@ && defined __FreeBSD__) /* has an inline definition */
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef fegetexceptflag
# define fegetexceptflag rpl_fegetexceptflag
#if @GNULIB_FESETEXCEPTFLAG@
/* Copies the flags denoted by EXCEPTIONS from *SAVED_FLAGS to the
floating-point exception status flags. */
-# if @REPLACE_FESETEXCEPTFLAG@
+# if @REPLACE_FESETEXCEPTFLAG@ || (!@HAVE_FESETEXCEPTFLAG@ && defined __FreeBSD__) /* has an inline definition */
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef fesetexceptflag
# define fesetexceptflag rpl_fesetexceptflag