Skip to content

Commit

Permalink
fix #ifdef __cplusplus guard in dirent.h (WebAssembly#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
12101111 authored Mar 8, 2024
1 parent c9c7d06 commit a1b4def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libc-bottom-half/headers/public/__header_dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
#define IFTODT(x) (__wasilibc_iftodt(x))
#define DTTOIF(x) (__wasilibc_dttoif(x))

int __wasilibc_iftodt(int x);
int __wasilibc_dttoif(int x);

#include <__struct_dirent.h>
#include <__typedef_DIR.h>

#ifdef __cplusplus
extern "C" {
#endif

int __wasilibc_iftodt(int x);
int __wasilibc_dttoif(int x);

int closedir(DIR *);
DIR *opendir(const char *);
DIR *fdopendir(int);
Expand Down

0 comments on commit a1b4def

Please sign in to comment.