diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/math.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/math/math.h b/math/math.h index d7487dda4a..2a5f8d3821 100644 --- a/math/math.h +++ b/math/math.h @@ -312,6 +312,13 @@ extern int matherr __P ((struct exception *__exc)); #endif +/* When compiling in strict ISO C compatible mode we must not use the + inline functions since they, among other things, do not set the + `errno' variable correctly. */ +#if defined __STRICT_ANSI__ && !defined __NO_MATH_INLINES +# define __NO_MATH_INLINES 1 +#endif + /* Get machine-dependent inline versions (if there are any). */ #ifdef __USE_EXTERN_INLINES # include <bits/mathinline.h> |