From: jqb AT netcom DOT com (Jim Balter) Subject: Re: problems with sys/errno.h 4 Nov 1996 18:04:13 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT 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 AT baynetworks DOT com (Joe Marzot) Original-Cc: gnu-win32 AT cygnus DOT com In-Reply-To: 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 AT cygnus DOT 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. -- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".