Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc committed Nov 13, 2024
1 parent 3b92b85 commit ad10549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyfastutil/src/Compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace compat {
/**
* Helper function to get the macOS version
*/
bool isMacos1015OrNewer() {
static __forceinline bool isMacos1015OrNewer() {
#ifdef __APPLE__
struct utsname sys_info;
if (uname(&sys_info) != 0) {
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
EXTRA_COMPILE_ARG = [
"-O3", "-funroll-loops", "-flto", "-fPIC",
"-std=c++2b", "-Wall", "-Werror", "-fvisibility=hidden",
"-Wno-error=unknown-pragmas"
"-Wno-error=unknown-pragmas",
"-Wno-error=unguarded-availability-new" # already handle in Compat.h
]
EXTRA_LINK_ARG = ["-shared"]

Expand Down

0 comments on commit ad10549

Please sign in to comment.