summaryrefslogtreecommitdiff
path: root/include/complex.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-03 14:24:28 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-03 14:24:28 +0000
commitfeeb0301b31a5ad4ea0594b17e4720bbe3308a3b (patch)
treeae71a3f81309a3068335ec30f021333454bccbc6 /include/complex.h
parent2ba017a2d5af01cc3ef0dc554252a521e8d7c4f8 (diff)
- add long double math wrappers (Ned Ludd)
Diffstat (limited to 'include/complex.h')
-rw-r--r--include/complex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/complex.h b/include/complex.h
index f005a9391..94fb6ea44 100644
--- a/include/complex.h
+++ b/include/complex.h
@@ -62,7 +62,7 @@ __BEGIN_DECLS
#define __MATHDECL_1(type, function, args) \
extern type __MATH_PRECNAME(function) args __THROW
-#define _Mdouble_ double
+#define _Mdouble_ double
#define __MATH_PRECNAME(name) name
#include <bits/cmathcalls.h>
#undef _Mdouble_
@@ -72,7 +72,7 @@ __BEGIN_DECLS
#ifndef _Mfloat_
# define _Mfloat_ float
#endif
-#define _Mdouble_ _Mfloat_
+#define _Mdouble_ _Mfloat_
#ifdef __STDC__
# define __MATH_PRECNAME(name) name##f
#else
@@ -84,11 +84,11 @@ __BEGIN_DECLS
/* And the long double versions. It is non-critical to define them
here unconditionally since `long double' is required in ISO C99. */
-#if __STDC__ - 0 || __GNUC__ - 0 && !defined __NO_LONG_DOUBLE_MATH
+#if __STDC__ - 0 || __GNUC__ - 0 && defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
# ifndef _Mlong_double_
# define _Mlong_double_ long double
# endif
-# define _Mdouble_ _Mlong_double_
+# define _Mdouble_ _Mlong_double_
# ifdef __STDC__
# define __MATH_PRECNAME(name) name##l
# else