delorie.com/archives/browse.cgi | search |
Date: | Sun, 2 Feb 2003 08:06:43 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
cc: | djgpp-workers AT delorie DOT com |
Subject: | Re: stdio.h: vfscanf(), vscanf(), vsscanf() |
In-Reply-To: | <3E3C602C.C2EDF04B@phekda.freeserve.co.uk> |
Message-ID: | <Pine.SUN.3.91.1030202080547.18963F-100000@is> |
MIME-Version: | 1.0 |
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 |
On Sun, 2 Feb 2003, Richard Dawe wrote: > I think we should have another ANSI section in the header files. Something > like this, perhaps: > > #ifndef __dj_ENFORCE_ANSI_FREESTANDING > > ...C89 declarations here... > > #if (__STDC_VERSION__ >= 199901L) || !defined(__STRICT_ANSI) > ...C99 declarations here > #endif > > #ifndef __STRICT_ANSI__ > > ... > > #ifndef _POSIX_SOURCE > > ... Yes. Please also change the sample header to have this template. > There would also be another section in <libc/stubs.h> for ANSI C89 functions > that call ANSI C99 functions (if there are any). Right.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |