Skip to content

Commit 84f9086

Browse files
committed
Correct errno headers.
This should have no impact on tests, but addresses an incompatibility with the standard library structure.
1 parent a03c176 commit 84f9086

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
int __errno;
2-
#define errno __errno
1+
#include <errno.h>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
namespace std {
2-
typedef int errno_t;
3-
} // namespace std
1+
#ifndef _GHLIBCPP_ERRNO
2+
#define _GHLIBCPP_ERRNO
3+
int __errno;
4+
#define errno __errno
5+
#endif // _GHLIBCPP_ERRNO

0 commit comments

Comments
 (0)