From: jqb@netcom.com (Jim Balter)
Subject: Re: problems with sys/errno.h
4 Nov 1996 18:04:13 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199611042254.OAA03345.cygnus.gnu-win32@netcom23.netcom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: gmarzot@baynetworks.com (Joe Marzot)
Original-Cc: gnu-win32@cygnus.com
In-Reply-To: <pdbuderqpf.fsf@baynetworks.com> from "Joe Marzot" at Nov 4, 96 07:26:52 am
X-Mailer: ELM [version 2.4 PL23]
Content-Length: 426       
Original-Sender: owner-gnu-win32@cygnus.com

Joe Marzot wrote:
> 
> the definition of errno as a macro in sys/errno.h(included from errno.h)
> causes problems for any use of the name 'errno' other than the usual
> global var. I.e. if 'errno' is used as a field in some other struct then
> including errno.h reaks havok on that code.
> 
> have I missed something?

Including errno.h makes errno a reserved word, per section 7.1.3 of the
ANSI/ISO C standard.

-- 
<J Q B>

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
