| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
| Message-Id: | <10408121516.AA22369@clio.rice.edu> |
| Subject: | Re: Fix for environ pollution |
| To: | djgpp-workers AT delorie DOT com |
| Date: | Thu, 12 Aug 2004 10:16:10 -0500 (CDT) |
| In-Reply-To: | <2719-Wed11Aug2004065357+0300-eliz@gnu.org> from "Eli Zaretskii" at Aug 11, 2004 06:53:58 AM |
| X-Mailer: | ELM [version 2.5 PL2] |
| Mime-Version: | 1.0 |
| X-Virus-Scanned: | by amavis-20030616-p6 at mail.rice.edu |
| X-DCC--Metrics: | handler11.mail.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1 |
| 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 |
> > Instead of putting environ in djgpp.djl, could we use a define statement > > in a header outside the ansi and posix definitions? > > I think we cannot do this because Posix explicitly says that environ > is not declared in any header. > > In other words, a Posix program that uses environ is not required to > include any system header, and it still can expect environ to be > available. OK, so Posix insists it be there without declaration, but ansi says it shouldn't be there ... It seems PROVIDE is the only fix. Sounds like a good fix to me. Thanks Esa.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |