Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,11 @@ def build_mupdf_unix( mupdf_local, env, build_type):
env_add(env, 'XCFLAGS', archflags)
env_add(env, 'XLIBS', archflags)

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

# We specify a build directory path containing 'pymupdf' so that we
# coexist with non-PyMuPDF builds (because PyMuPDF builds have a
# different config.h).
Expand Down Expand Up @@ -1094,7 +1099,7 @@ def sdist():
# We generate different wheels depending on g_flavour.
#

version = '1.23.26'
version = '1.23.26.1'
version_b = '1.23.22'

tag_python = None
Expand Down
7 changes: 5 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6780,7 +6780,10 @@ def uri_to_dict(uri):
if ftab[1].startswith("page="):
self.kind = LINK_GOTOR
self.file_spec = ftab[0]
self.page = int(ftab[1][5:]) - 1
page_part = ftab[1][5:]
if "&" in page_part:
page_part = page_part.split("&")[0]
self.page = int(page_part) - 1
else:
self.is_uri = True
self.kind = LINK_LAUNCH
Expand Down Expand Up @@ -21730,7 +21733,7 @@ def int_rc(text):
return int(text)

VersionFitz = "1.23.10" # MuPDF version.
VersionBind = "1.23.26" # PyMuPDF version.
VersionBind = "1.23.26.1" # PyMuPDF version.
VersionDate = "2024-02-29 00:00:01"
VersionDate2 = VersionDate.replace('-', '').replace(' ', '').replace(':', '')
version = (VersionBind, VersionFitz, VersionDate2)
Expand Down
5 changes: 4 additions & 1 deletion src_classic/helper-python.i
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ class linkDest(object):
if ftab[1].startswith("page="):
self.kind = LINK_GOTOR
self.fileSpec = ftab[0]
self.page = int(ftab[1][5:]) - 1
page_part = ftab[1][5:]
if "&" in page_part:
page_part = page_part.split("&")[0]
self.page = int(page_part) - 1
else:
self.isUri = True
self.kind = LINK_LAUNCH
Expand Down
Loading