From 05cc5bd9dca91dfad3eec076b1bfdfef868f0987 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 May 1999 08:37:39 +0000 Subject: Update. 1999-05-04 Zack Weinberg * argp/argp.h, assert/assert.h, misc/sys/cdefs.h, posix/sys/types.h: Handle the case of __GNUC__=3, __GNUC_MINOR__=(anything). --- argp/argp.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'argp/argp.h') diff --git a/argp/argp.h b/argp/argp.h index eb570f1..cfa7116 100644 --- a/argp/argp.h +++ b/argp/argp.h @@ -1,5 +1,5 @@ /* Hierarchial argument parsing, layered over getopt. - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Miles Bader . @@ -38,13 +38,16 @@ typedef int error_t; #endif #ifndef __P -# if (defined __STDC__ && __STDC__) || defined __cplusplus -# if defined __GNUC__ && defined __cplusplus && __GNUC_MINOR__ >= 8 +# ifdef __cplusplus +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7) # define __P(args) args throw () # else # define __P(args) args # endif # define __PMT(args) args +# elif defined __STDC__ && __STDC__ > 0 +# define __P(args) args +# define __PMT(args) args # else # define __P(args) () # define __PMT(args) () -- cgit v1.1