[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#62327: [zack@wolery.cumb.org: Re: Some way for an application to detect -traditional?]



Could we get glibc2.1 to check __STDC__ and complain if it's not
defined? Something like
#ifndef __STDC__
	#error You can't use glibc 2.1 with -traditional
#endif ?

----- Forwarded message from Zack Weinberg <zack@wolery.cumb.org> -----

From: Zack Weinberg <zack@wolery.cumb.org>
Date: Fri, 14 Apr 2000 09:24:44 -0700
To: dstarner98@aasaa.ofe.org
Cc: gcc@gcc.gnu.org
Subject: Re: Some way for an application to detect -traditional?
User-Agent: Mutt/1.1.9i
In-Reply-To: <20000414091921.A21944@x8b4e53cd.dhcp.okstate.edu>; from dvdeug@x8b4e53cd.dhcp.okstate.edu on Fri, Apr 14, 2000 at 09:19:21AM -0500

On Fri, Apr 14, 2000 at 09:19:21AM -0500, David Starner wrote:
> Is there some way for an application to detect if -traditional
> was used on the command line? glibc2.1 no longer supports 
> -traditional, and it is the path of least resistance to get 
> glibc2.1 header files to detect that and emit a clear error
> instead of many confusing ones.

__STDC__ is not defined in -traditional mode.

zw

----- End forwarded message -----

-- 
David Starner - dstarner98@aasaa.ofe.org
Only a nerd would worry about wrong parentheses with
square brackets. But that's what mathematicians are.
   -- Dr. Burchard, math professor at OSU


Reply to: