Skip to content

Commit

Permalink
Fix wrong cxx_extern return value
Browse files Browse the repository at this point in the history
This fix UB
  • Loading branch information
yujincheng08 authored and topjohnwu committed Aug 12, 2024
1 parent 5c04973 commit 278046b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions native/src/base/files.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ int mkdirs(const char *path, mode_t mode);
ssize_t canonical_path(const char * __restrict__ path, char * __restrict__ buf, size_t bufsiz);
bool rm_rf(const char *path);
bool frm_rf(int dirfd);
void cp_afc(const char *src, const char *dest);
void mv_path(const char *src, const char *dest);
void link_path(const char *src, const char *dest);
void clone_attr(const char *src, const char *dest);
void fclone_attr(int src, int dest);
bool cp_afc(const char *src, const char *dest);
bool mv_path(const char *src, const char *dest);
bool link_path(const char *src, const char *dest);
bool clone_attr(const char *src, const char *dest);
bool fclone_attr(int src, int dest);

} // extern "C"

Expand Down

0 comments on commit 278046b

Please sign in to comment.