aboutsummaryrefslogtreecommitdiff
path: root/math/complex.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-09 18:21:06 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-09 18:21:06 +0000
commit1792d4dbdace6ebddafee6694d7919e93b0ad335 (patch)
treed5f8cc9b3d2f85a65252cad75949dccefbb0348e /math/complex.h
parent5c9403426275d25d3482f477e79d6f00699503c3 (diff)
downloadglibc-1792d4dbdace6ebddafee6694d7919e93b0ad335.zip
glibc-1792d4dbdace6ebddafee6694d7919e93b0ad335.tar.gz
glibc-1792d4dbdace6ebddafee6694d7919e93b0ad335.tar.bz2
Update.
1998-11-09 18:16 Ulrich Drepper <drepper@cygnus.com> * math/complex.h: Include bits/mathdef.h to get __NO_LONG_DOUBLE_MATH is needed. Don't define long double functions if __NO_LONG_DOUBLE_MATH is defined. Don't define `complex' but instead `_Complex'. The later is the reserved keyword. * math/bits/cmathcalls.c: Define _Mdouble_complex_ using _Complex, not complex. 1998-11-07 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * manual/libc.texinfo: Remove colon from category name. * manual/Makefile (dir-add.info): Likewise. 1998-11-07 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * configure.in: Avoid autoconf bug. 1998-10-28 H.J. Lu <hjl@gnu.org> * posix/getopt.h: Add "__" to arguments in prototypes. 1998-11-05 H.J. Lu <hjl@gnu.org> * libio/iofgets.c (_IO_fgets): Don't report error if something was read in and errno is set to EAGAIN. * libio/iofgets_u.c (fgets_unlocked): Likewise. 1998-11-05 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/net/if_packet.h: Don't include kernel header; it defines too much. Provide a local definition of struct sockaddr_pkt and a comment advising against its use. 1998-11-06 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * extra-lib.mk: Avoid empty include list. 1998-11-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * extra-lib.mk: Add support for $(lib)-shared-only-routines. * elf/Makefile (libdl-routines): Add dlopenold only if doing versioning. (libdl-shared-only-routines): New variable. 1998-11-06 Paul Eggert <eggert@twinsun.com> Don't invoke localtime_r or gmtime_r unless it's the GNU C library's localtime_r and gmtime_r; there are too many buggy implementations of localtime_r and gmtime_r out there, and it's not worth keeping track of all the different bugs. * time/mktime.c (__EXTENSIONS__): Remove. (<unistd.h>): No need to include. Remove. (my_mktime_localtime_r): Renamed from localtime_r; all uses changed. Base it on localtime unless _LIBC. * time/strftime.c (my_strftime_gmtime_r): Renamed from gmtime_r; all uses changed. (my_strftime_localtime_r): Renamed from localtime_r; all uses changed. Base them on localtime/gmtime if not _LIBC.
Diffstat (limited to 'math/complex.h')
-rw-r--r--math/complex.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/math/complex.h b/math/complex.h
index 72b1e59..7ed9890 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 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
@@ -25,13 +25,16 @@
#include <features.h>
+/* Get general and ISO C 9X specific information. */
+#include <bits/mathdef.h>
+
__BEGIN_DECLS
/* We might need to add support for more compilers here. But once ISO
C 9X is out hopefully all maintained compilers will provide the data
types `float complex' and `double complex'. */
#if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2
-# define complex __complex__
+# define _Complex __complex__
#endif
@@ -74,13 +77,13 @@ __BEGIN_DECLS
/* Now the float versions. */
#ifndef _Mfloat_
-#define _Mfloat_ float
+# define _Mfloat_ float
#endif
#define _Mdouble_ _Mfloat_
#ifdef __STDC__
-#define __MATH_PRECNAME(name) name##f
+# define __MATH_PRECNAME(name) name##f
#else
-#define __MATH_PRECNAME(name) name/**/f
+# define __MATH_PRECNAME(name) name/**/f
#endif
#include <bits/cmathcalls.h>
#undef _Mdouble_
@@ -88,16 +91,18 @@ __BEGIN_DECLS
/* And the long double versions. It is non-critical to define them
here unconditionally since `long double' is required in ISO C 9X. */
-#ifndef _Mlong_double_
-#define _Mlong_double_ long double
+#if __STDC__ - 0 || __GNUC__ - 0 && !defined __NO_LONG_DOUBLE_MATH
+# ifndef _Mlong_double_
+# define _Mlong_double_ long double
+# endif
+# define _Mdouble_ _Mlong_double_
+# ifdef __STDC__
+# define __MATH_PRECNAME(name) name##l
+# else
+# define __MATH_PRECNAME(name) name/**/l
+# endif
+# include <bits/cmathcalls.h>
#endif
-#define _Mdouble_ _Mlong_double_
-#ifdef __STDC__
-#define __MATH_PRECNAME(name) name##l
-#else
-#define __MATH_PRECNAME(name) name/**/l
-#endif
-#include <bits/cmathcalls.h>
#undef _Mdouble_
#undef __MATH_PRECNAME
#undef __MATHDECL_1