Index: fpdfsdk/src/fpdfsave.cpp |
diff --git a/fpdfsdk/src/fpdfsave.cpp b/fpdfsdk/src/fpdfsave.cpp |
index 7a666bceb865055ae2b2c4f574e74023cf277e87..2cfbb81cd0790edc78164d6abfef4b8ebbbdf5fb 100644 |
--- a/fpdfsdk/src/fpdfsave.cpp |
+++ b/fpdfsdk/src/fpdfsave.cpp |
@@ -60,6 +60,7 @@ void CFX_IFileWrite::Release() { |
FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, |
CFX_PtrArray& fileList) { |
+#ifdef PDF_ENABLE_XFA |
if (!pDocument) |
return FALSE; |
if (pDocument->GetDocType() != DOCTYPE_DYNIMIC_XFA && |
@@ -228,6 +229,8 @@ FX_BOOL _SaveXFADocumentData(CPDFXFA_Document* pDocument, |
} |
} |
pContext->Release(); |
+#endif // PDF_ENABLE_XFA |
+ |
return TRUE; |
} |