summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-08-05 23:36:21 +0000
committerUlrich Drepper <drepper@redhat.com>1997-08-05 23:36:21 +0000
commit044b16f4e9ae773187f4fee8a9a0a54f9a51f13f (patch)
tree58bc41e16535e0d0f61d51e6af15ce4128864fc9 /math
parentc59a94711c6a9d38811b828863076f39000831b4 (diff)
update for 2.0.5pre1
Diffstat (limited to 'math')
-rw-r--r--math/math.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/math/math.h b/math/math.h
index a2b98f8853..b3bd23a836 100644
--- a/math/math.h
+++ b/math/math.h
@@ -182,17 +182,25 @@ extern int matherr __P ((struct exception *));
#define M_SQRT2 _Mldbl(1.41421356237309504880) /* sqrt(2) */
#define M_SQRT1_2 _Mldbl(0.70710678118654752440) /* 1/sqrt(2) */
+#endif
+
/* Our constants might specify more precision than `double' can represent.
Use `long double' constants in standard and GNU C, where they are
- supported and the cast to `double'. */
+ supported and the cast to `double'.
+
+ If the constants are use in code which does not use prototypes, one
+ might get problems if a function takes a `double' argument and any
+ of the constants are provided as the argument. In this case, cast
+ the argument to `double'.
+
+ Please note we define the macro even if the constants are not defined.
+ This helps us to use the macros in other places. */
#if __STDC__ - 0 || __GNUC__ - 0
#define _Mldbl(x) x##L
#else /* Traditional C. */
#define _Mldbl(x) x
#endif /* Standard or GNU C. */
-#endif
-
/* Get machine-dependent inline versions (if there are any). */
#if (!defined __NO_MATH_INLINES && defined __OPTIMIZE__) \