summaryrefslogtreecommitdiff
path: root/sysdeps/hppa/fpu/bits/mathdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hppa/fpu/bits/mathdef.h')
-rw-r--r--sysdeps/hppa/fpu/bits/mathdef.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/hppa/fpu/bits/mathdef.h b/sysdeps/hppa/fpu/bits/mathdef.h
index d189f4a373..99c9cffd25 100644
--- a/sysdeps/hppa/fpu/bits/mathdef.h
+++ b/sysdeps/hppa/fpu/bits/mathdef.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2006-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -34,5 +34,10 @@ typedef double double_t; /* `double' expressions are evaluated as
#endif /* ISO C99 */
-/* On hppa `long double' is 64-bits. */
-#undef __NO_LONG_DOUBLE_MATH
+#ifndef __NO_LONG_DOUBLE_MATH
+/* On hppa `long double' and `double' are 64-bits. So, libm is built
+ with NO_LONG_DOUBLE defined. The following define ensures the library
+ and headers are consistent. This disables the declaration of all the
+ `long double' function variants. */
+# define __NO_LONG_DOUBLE_MATH 1
+#endif