www.delorie.com/archives/browse.cgi | search |
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 |
Original-To: | gmarzot AT baynetworks DOT com (Joe Marzot) |
Original-Cc: | gnu-win32 AT cygnus DOT 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] |
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. -- <J Q B> - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |