summary refs log tree commit diff
path: root/math/complex.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-11-04 14:39:05 +0100
committerAndreas Schwab <schwab@redhat.com>2011-11-04 15:16:11 +0100
commit998832a46688b9fb3a101eccae77bc45e7c1d7ab (patch)
treed36332068f8674a1728ad2743d7d1a662c4c4fbe /math/complex.h
parent10fb0bfab13b7cd6cd9b22c2edced0fd3a3b8b32 (diff)
downloadglibc-998832a46688b9fb3a101eccae77bc45e7c1d7ab.tar.gz
glibc-998832a46688b9fb3a101eccae77bc45e7c1d7ab.tar.xz
glibc-998832a46688b9fb3a101eccae77bc45e7c1d7ab.zip
Always provide declarations of long double math functions when !_LIBC
Diffstat (limited to 'math/complex.h')
-rw-r--r--math/complex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/complex.h b/math/complex.h
index 751aaf763f..cc6006e760 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000, 2006, 2011 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
@@ -85,7 +85,8 @@ __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 || defined __LDBL_COMPAT)
+    && (!(defined __NO_LONG_DOUBLE_MATH && defined _LIBC) \
+	|| defined __LDBL_COMPAT)
 # ifdef __LDBL_COMPAT
 #  undef __MATHDECL_1
 #  define __MATHDECL_1(type, function, args) \