delorie.com/archives/browse.cgi | search |
> Date: Thu, 4 Jun 2015 23:26:57 +0300 > From: "Ozkan Sezer (sezeroz AT gmail DOT com)" <djgpp AT delorie DOT com> > > > --- errno.h.orig 2015-06-04 23:12:46.745892048 +0300 > > +++ errno.h 2015-06-04 23:13:13.382210708 +0300 > > @@ -25,7 +25,7 @@ > > > > #endif /* (__STDC_VERSION__ >= 199901L) || !__STRICT_ANSI__ */ > > > > -#ifndef __STRICT_ANSI__ > > +#if !defined(__STRICT_ANSI__) || defined(__cplusplus) > > > > #define E2BIG 3 > > #define EACCES 4 > > > > Do we really have to confine those errnos to !__STRICT_ANSI__ ? We want to _exclude_ them when __STRICT_ANSI__ is defined, since that definition means the library should keep the namespace free of symbols that the standard does not define. The reason is to let applications use those symbols in ways that are incompatible with their non-standard usage.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |