public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stan Shebs <shebs@apple.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] Still more #ifs in stddef.h
Date: Wed, 31 Jul 2002 23:21:00 -0000	[thread overview]
Message-ID: <3D48BF9C.60607@apple.com> (raw)

Continuing in the grand tradition of BSD derivatives :-), Jaguar needs
a couple more tests in ginclude/stddef.h in order for GCC to include
system headers and still be able to bootstrap.  While I could just
declare these part of Darwin 6.0 (Jaguar) support and check them in
I'd like to get at least one pair of eyes, preferably BSD-knowledgeable,
to tell me if this is going to crumble other systems in some new and
twisted way...  Thanks to Andreas Tobler for figuring out the rune_t one!

Stan

2002-07-31  Stan Shebs  <shebs@apple.com>
        Andreas Tobler  <toa@pop.agri.ch>

    * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
    plays nice with Darwin headers.
    (_BSD_RUNE_T_DEFINED_): Likewise.

Index: stddef.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ginclude/stddef.h,v
retrieving revision 1.14
diff -p -r1.14 stddef.h
*** stddef.h    9 Jan 2002 04:56:25 -0000    1.14
--- stddef.h    1 Aug 2002 04:41:35 -0000
*************** typedef __PTRDIFF_TYPE__ ptrdiff_t;
*** 175,180 ****
--- 175,181 ----
  #ifndef _BSD_SIZE_T_
  #ifndef _SIZE_T_DEFINED_
  #ifndef _SIZE_T_DEFINED
+ #ifndef _BSD_SIZE_T_DEFINED_    /* Darwin */
  #ifndef ___int_size_t_h
  #ifndef _GCC_SIZE_T
  #ifndef _SIZET_
*************** typedef __PTRDIFF_TYPE__ ptrdiff_t;
*** 190,195 ****
--- 191,197 ----
  #define _BSD_SIZE_T_
  #define _SIZE_T_DEFINED_
  #define _SIZE_T_DEFINED
+ #define _BSD_SIZE_T_DEFINED_    /* Darwin */
  #define ___int_size_t_h
  #define _GCC_SIZE_T
  #define _SIZET_
*************** typedef long ssize_t;
*** 207,212 ****
--- 209,215 ----
  #endif /* _SIZET_ */
  #endif /* _GCC_SIZE_T */
  #endif /* ___int_size_t_h */
+ #endif /* _BSD_SIZE_T_DEFINED_ */
  #endif /* _SIZE_T_DEFINED */
  #endif /* _SIZE_T_DEFINED_ */
  #endif /* _BSD_SIZE_T_ */
*************** typedef long ssize_t;
*** 239,244 ****
--- 242,248 ----
  #ifndef _WCHAR_T_
  #ifndef _BSD_WCHAR_T_
  #ifndef _BSD_WCHAR_T_DEFINED_    /* Darwin */
+ #ifndef _BSD_RUNE_T_DEFINED_    /* Darwin */
  #ifndef _WCHAR_T_DEFINED_
  #ifndef _WCHAR_T_DEFINED
  #ifndef _WCHAR_T_H
*************** typedef long ssize_t;
*** 276,281 ****
--- 280,286 ----
  #if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE)
  typedef _BSD_RUNE_T_ rune_t;
  #define _BSD_WCHAR_T_DEFINED_
+ #define _BSD_RUNE_T_DEFINED_    /* Darwin */
  #if defined (__FreeBSD__)
  /* Why is this file so hard to maintain properly?  In constrast to
     the comment above regarding BSD/386 1.1, on FreeBSD for as long
*************** typedef __WCHAR_TYPE__ wchar_t;
*** 299,304 ****
--- 304,310 ----
  #endif
  #endif
  #endif
+ #endif /* _BSD_RUNE_T_DEFINED_ */
  #endif
  #endif
  #endif


             reply	other threads:[~2002-08-01  4:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 23:21 Stan Shebs [this message]
2002-08-01 17:48 ` Loren James Rittle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D48BF9C.60607@apple.com \
    --to=shebs@apple.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).