depot/third_party/nixpkgs/pkgs/applications/misc/mupdf/fix-cpp-build.patch
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

13 lines
522 B
Diff

diff --git a/scripts/wrap/cpp.py b/scripts/wrap/cpp.py
index 51ac5f1..b5c0b5a 100644
--- a/scripts/wrap/cpp.py
+++ b/scripts/wrap/cpp.py
@@ -4595,7 +4595,7 @@ def cpp_source(
*/
typedef unsigned long size_t;
'''))
- if state.state_.macos:
+ if state.state_.linux or state.state_.macos:
f.write( textwrap.dedent('''
/*
Workaround on MacOS: we need to define fixed-size int types