SC22 WG14 N1257 describes an inconsistency in the wording for <errno.h>. N1308 followed up proposing changes in wording to both C and C++ to bring them into alignment with POSIX, allowing errno to be implemented as either a macro or an identifier with external linkage.
Following discussions with both the C and C++ committees, it is clear that the cost of requiring it to be defined as a macro is infinitesimally small, since in the worst case it simply requires
#define errno errno
In the vast majority of known implementations, errno is already a macro.
To that end, this proposal seeks to clarify the wording in the C standard to force errno to be defined as a macro.
Proposed wording for CIn 7.5 paragraph 2, delete the penultimate sentence:
It is unspecified whether errno is a macro or an identifier declared with external linkage.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4