From 1792d4dbdace6ebddafee6694d7919e93b0ad335 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 9 Nov 1998 18:21:06 +0000 Subject: Update. 1998-11-09 18:16 Ulrich Drepper * 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 * manual/libc.texinfo: Remove colon from category name. * manual/Makefile (dir-add.info): Likewise. 1998-11-07 Andreas Schwab * configure.in: Avoid autoconf bug. 1998-10-28 H.J. Lu * posix/getopt.h: Add "__" to arguments in prototypes. 1998-11-05 H.J. Lu * 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 * 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 * extra-lib.mk: Avoid empty include list. 1998-11-04 Andreas Schwab * 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 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. (): 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. --- math/complex.h | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'math/complex.h') 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 +/* Get general and ISO C 9X specific information. */ +#include + __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 #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 #endif -#define _Mdouble_ _Mlong_double_ -#ifdef __STDC__ -#define __MATH_PRECNAME(name) name##l -#else -#define __MATH_PRECNAME(name) name/**/l -#endif -#include #undef _Mdouble_ #undef __MATH_PRECNAME #undef __MATHDECL_1 -- cgit v1.1