This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] __THROW for non-gcc


Hi!

This patch tries to make non-gcc compilers happy (e.g. Compaq C) because
otherwise __THROW which is used everywhere is undefined.

2000-10-06  Jakub Jelinek  <jakub@redhat.com>

	* malloc/malloc.h (__THROW): Define to nothing if not gcc.
	* misc/sys/cdefs.h (__THROW): Likewise.

--- libc/malloc/malloc.h.jj	Fri Sep 29 12:56:58 2000
+++ libc/malloc/malloc.h	Fri Oct  6 22:57:33 2000
@@ -1,5 +1,5 @@
 /* Prototypes and definition for malloc implementation.
-   Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000 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
@@ -75,6 +75,8 @@
 # define __MALLOC_PMT(args)	args
 
 #else	/* Not GCC.  */
+
+# define __THROW
 
 # if (defined __STDC__ && __STDC__) || defined __cplusplus
 
--- libc/misc/sys/cdefs.h.jj	Tue Aug 22 10:12:59 2000
+++ libc/misc/sys/cdefs.h	Fri Oct  6 22:53:17 2000
@@ -54,6 +54,7 @@
 
 # define __inline		/* No inline functions.  */
 
+# define __THROW
 # define __P(args)	args
 # define __PMT(args)	args
 

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]