delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/08/16:48:34

Message-ID: <000e01c079bc$acae71e0$2360893e@oemcomputer>
From: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
To: <djgpp-workers AT delorie DOT com>
Subject: Re: namespace std - stdio.h patch
Date: Mon, 8 Jan 2001 21:47:59 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp-workers AT delorie DOT com

DJ Delorie wrote:

> How do other platforms get around this?

I haven't looked at other GCC ports (except MinGW, which currently
makes no attempt to do it correctly).  Borland C++ 5.5.1 uses essentially
the same method as I've used (except that it has include guards like
__STDIO_H_USING_LIST around the lists of using declarations).  I think
this is the obvious way to do it if all the real content must go in the
<*.h> headers, as is the case with DJGPP.  A C++ compiler that wasn't
also a C compiler would put the using declarations in the <*.h> headers
and everything else in the <c*> headers.

Stephen

- Raw text -


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