Skip to content

Fix <fenv.h>#785

Open
ZERICO2005 wants to merge 3 commits intomasterfrom
fix_fenv
Open

Fix <fenv.h>#785
ZERICO2005 wants to merge 3 commits intomasterfrom
fix_fenv

Conversation

@ZERICO2005
Copy link
Copy Markdown
Contributor

Removed this header inclusion mechanism

#define _FENV_P_ONLY
#include <fenv.h>

And replaced it with this (which is less work to maintain)

#include <__fenv_def.h>

inline int feclearexcept(int __excepts) technically is not conforming (since the feclearexcept symbol must not be inline) so I corrected that by having int feclearexcept(int __excepts) and #define feclearexcept(excepts) __fetestexcept(excepts) and etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant