Skip to content

Commit 1eb020e

Browse files
committed
fix: fix setup.py
1 parent 1105825 commit 1eb020e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ def build_mupdf_unix( mupdf_local, env, build_type):
760760

761761
# Add compiler flags to handle C23 compatibility issues on macOS
762762
if darwin:
763-
env_add(env, 'XCFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype')
764-
env_add(env, 'XCXXFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype')
763+
env_add(env, 'XCFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype -Wno-macro-redefined -Wno-error=macro-redefined')
764+
env_add(env, 'XCXXFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype -Wno-macro-redefined -Wno-error=macro-redefined')
765765

766766
# We specify a build directory path containing 'pymupdf' so that we
767767
# coexist with non-PyMuPDF builds (because PyMuPDF builds have a

0 commit comments

Comments
 (0)