This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: changes for approval, part three (solaris)
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: changes for approval, part three (solaris)
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Tue, 24 Oct 2000 21:03:57 -0400
v3 only is intended to be compiled by gcc-3, expects a GNU libc
environment, and many of the other _G_config.h macros are unused, so might
I suggest that libio.h define the GNU libc cdefs.h macros as it expects
them to be defined:
Index: libio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/libio/libio.h,v
retrieving revision 1.8
diff -c -p -r1.8 libio.h
*** libio.h 2000/10/18 23:29:30 1.8
--- libio.h 2000/10/25 00:59:01
***************
*** 56,72 ****
#endif
#ifndef __P
! # if _G_HAVE_SYS_CDEFS
! # include <sys/cdefs.h>
! # else
! # ifdef __STDC__
! # define __P(p) p
! # define __PMT(p) p
! # else
! # define __P(p) ()
! # define __PMT(p) ()
! # endif
! # endif
#endif /*!__P*/
/* For backward compatibility */
--- 56,63 ----
#endif
#ifndef __P
! # define __P(p) p __THROW
! # define __PMT(p) p
#endif /*!__P*/
/* For backward compatibility */
This seems a lot more straight-forward than each target fixing up cdefs.h
to match GNU libc and removes some of the redundancy in the solaris patch.
David