www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/07/11/11:38:46

Date: Wed, 11 Jul 2001 18:38:35 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: lauras AT softhome DOT net
Message-Id: <7263-Wed11Jul2001183835+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <20010711163616.A291@lauras.lt>
Subject: Re: Comments on GCC 3.0 distribution
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010708110538 DOT 24414F-100000 AT is> <20010710181253 DOT A472 AT lauras DOT lt> <1438-Tue10Jul2001222330+0300-eliz AT is DOT elta DOT co DOT il> <20010711163616 DOT A291 AT lauras DOT lt>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Laurynas Biveinis" <lauras AT softhome DOT net>
> Date: Wed, 11 Jul 2001 16:36:16 +0200
> 
> > Yes, we have lots of Posix _POSIX_* constants, and quite a few others.
> > I'm afraid that without out limits.h being included by the one which
> > comes with GCC, some programs which need those constants might not
> > compile.
> 
> Another poor answer, but in this case it would be ``too bad to be true'' -
> too many broken platforms.

Sorry, I don't understand this.  What platforms did you have in mind?

> > The problem is, again, with any program which compiled with our
> > stddef.h because it used some data type defined by sys/djtypes.h.  It
> > could fail to compile with GCC's stddef.h.
> 
> You mean that code like
> #include <stddef.h>
> __dj_blah_t
> 
> will stop working?

No, I don't expect any application code to use private defines like
those; they are forbidden from doing that by ANSI.

But look at wchar.h, for example:

    #include <stddef.h>

    __DJ_wint_t
    #undef __DJ_wint_t
    #define __DJ_wint_t

This won't work if stddef.h doesn't include sys/djtypes.h.  Observe:

#include <wchar.h>

int main (void)
{
  return 0;
}

gcc -c twc.c
In file included from twc.c:1:
wchar.h:24: syntax error before "typedef"

(The current CVS version of wchar.h doesn't have that problem, but I'm
thinking about users who install GCC 3.0 now, with stock
djdev203.zip.)

There might be other problems like that, I didn't check.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019