Skip to content

Commit 175bcc4

Browse files
committed
Add errno in cpp2rust compat layer
1 parent 8861efd commit 175bcc4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cpp2rust/compat/errno.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) 2022-present INESC-ID.
2+
// Distributed under the MIT license that can be found in the LICENSE file.
3+
4+
#include_next <errno.h>
5+
6+
#undef errno
7+
8+
int *cpp2rust_errno(void);
9+
10+
#define errno (*cpp2rust_errno())

0 commit comments

Comments
 (0)