From owner-freebsd-standards Mon Mar 10 7:57:41 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04B6A37B401; Mon, 10 Mar 2003 07:57:40 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BAD743FDF; Mon, 10 Mar 2003 07:57:39 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id D12289C62; Mon, 10 Mar 2003 10:44:34 -0500 (EST) Date: Mon, 10 Mar 2003 10:44:34 -0500 From: Mike Barcroft To: "Andrey A. Chernov" Cc: standards@freebsd.org, current@freebsd.org Subject: Re: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <20030310104434.P70629@espresso.bsdmike.org> References: <20030310061548.GA85361@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030310061548.GA85361@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Mar 10, 2003 at 09:15:48AM +0300 Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrey A. Chernov writes: > Many programs (from ports too) defines _ISOC99_SOURCE to get C99 > functions, but we don't sense this define currently. Here is the fix for > review: Cool. I didn't realize there was an existing precedence, or I would have used it. > --- cdefs.h.bak Wed Oct 23 05:04:06 2002 > +++ cdefs.h Mon Mar 10 09:11:01 2003 > @@ -360,6 +360,9 @@ > #define __POSIX_VISIBLE 198808 > #define __ISO_C_VISIBLE 0 > #endif /* _POSIX_C_SOURCE */ > +#ifdef _ISOC99_SOURCE > +#define __ISO_C_VISIBLE 1999 > +#endif This part isn't needed... > #else > /*- > * Deal with _ANSI_SOURCE: > @@ -378,7 +381,7 @@ > #define __XSI_VISIBLE 0 > #define __BSD_VISIBLE 0 > #define __ISO_C_VISIBLE 1990 > -#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ > +#elif defined(_ISOC99_SOURCE) /* Strict C99 env. */ > #define __POSIX_VISIBLE 0 > #define __XSI_VISIBLE 0 > #define __BSD_VISIBLE 0 ...since the next line here is: #define __ISO_C_VISIBLE 1999 Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message