summaryrefslogtreecommitdiff
path: root/sysdeps/nios2/math_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nios2/math_private.h')
-rw-r--r--sysdeps/nios2/math_private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/nios2/math_private.h b/sysdeps/nios2/math_private.h
index a89db448dd..373da2a621 100644
--- a/sysdeps/nios2/math_private.h
+++ b/sysdeps/nios2/math_private.h
@@ -1,4 +1,5 @@
-#ifndef _MATH_PRIVATE_H
+#ifndef NIO2_MATH_PRIVATE_H
+#define NIO2_MATH_PRIVATE_H 1
/* Suppress use of exceptions here to avoid build errors if the FE_*
macros aren't defined. Only allow rounding modes implemented for Nios II.
@@ -24,6 +25,10 @@
#define libc_feholdexcept_setround(env, exc) ({ (void) (env); 0; })
#define libc_feupdateenv_test(env, exc) ({ (void) (env); 0; })
+/* Enable __finitel, __isinfl, and __isnanl for binary compatibility
+ when built without long double support. */
+#define LDBL_CLASSIFY_COMPAT 1
+
#include_next <math_private.h>
#define feraiseexcept(excepts) ({ 0; })