Skip to content

Commit

Permalink
Merge pull request #18 from FriwiDev/main
Browse files Browse the repository at this point in the history
Use C style function names instead
  • Loading branch information
lemire authored Sep 12, 2024
2 parents 1a05dd0 + 8e8fc90 commit ecaad18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/is_utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
// 99.99% of the inputs are valid UTF-8.
// Thus the function unconditionally scans the
// whole input.
bool is_utf8(const char *src, size_t len);
#endif // IS_UTF8
extern "C" bool is_utf8(const char *src, size_t len);
#endif // IS_UTF8
6 changes: 4 additions & 2 deletions src/is_utf8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6748,6 +6748,8 @@ IS_UTF8_UNTARGET_REGION

IS_UTF8_POP_DISABLE_WARNINGS

bool is_utf8(const char *src, size_t len) {
return is_utf8_internals::validate_utf8(src, len);
extern "C" {
bool is_utf8(const char *src, size_t len) {
return is_utf8_internals::validate_utf8(src, len);
}
}

0 comments on commit ecaad18

Please sign in to comment.