diff --git a/setupsrc/pypdfium2_setup/packaging_base.py b/setupsrc/pypdfium2_setup/packaging_base.py index 09d16518e..4c1aa7d59 100644 --- a/setupsrc/pypdfium2_setup/packaging_base.py +++ b/setupsrc/pypdfium2_setup/packaging_base.py @@ -308,7 +308,7 @@ def call_ctypesgen(target_dir, include_dir, pl_name, use_v8xfa=False, guard_symb if not guard_symbols: args += ["--no-symbol-guards"] if use_v8xfa: - args += ["-D", "PDF_ENABLE_XFA", "PDF_ENABLE_V8"] + args += ["-D", "PDF_ENABLE_V8", "PDF_ENABLE_XFA"] if pl_name.startswith(SystemNames.windows) and Host.system == SystemNames.windows: args += ["-D", "_WIN32"] args += ["--headers"] + [h.name for h in sorted(include_dir.glob("*.h"))] + ["-o", bindings]