Skip to content

Commit a1b4def

Browse files
authored
fix #ifdef __cplusplus guard in dirent.h (#479)
fix: WebAssembly/wasi-sdk#390
1 parent c9c7d06 commit a1b4def

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libc-bottom-half/headers/public/__header_dirent.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
#define IFTODT(x) (__wasilibc_iftodt(x))
2222
#define DTTOIF(x) (__wasilibc_dttoif(x))
2323

24-
int __wasilibc_iftodt(int x);
25-
int __wasilibc_dttoif(int x);
26-
2724
#include <__struct_dirent.h>
2825
#include <__typedef_DIR.h>
2926

3027
#ifdef __cplusplus
3128
extern "C" {
3229
#endif
3330

31+
int __wasilibc_iftodt(int x);
32+
int __wasilibc_dttoif(int x);
33+
3434
int closedir(DIR *);
3535
DIR *opendir(const char *);
3636
DIR *fdopendir(int);

0 commit comments

Comments
 (0)