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

Message-ID: <000f01c079bc$c0955ac0$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:48:33 -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

Eli Zaretskii wrote:

> > + #if defined(__cplusplus) && !defined(__dj_ENFORCE_ANSI_FREESTANDING)
>
> I wonder whether we need to have __dj_ENFORCE_ANSI_FREESTANDING here.

I'm not sure, but I thought it was safest.

> That symbol is for a stand-alone compiler, i.e. when libc.a is not
> used.  Does the C++  standard at all define a stand-alone compiler?

Yes, it defines "hosted" and "freestanding" implementations, just
as the C standard does.  I don't know if it's possible to use DJGPP as
a freestanding C++ compiler, but I can't see an obvious reason why not.

Stephen

- Raw text -


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