summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdfsdk/fpdf_ext.cpp2
-rw-r--r--public/fpdf_ext.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_ext.cpp b/fpdfsdk/fpdf_ext.cpp
index 8a45a13e12..9bb54da594 100644
--- a/fpdfsdk/fpdf_ext.cpp
+++ b/fpdfsdk/fpdf_ext.cpp
@@ -191,7 +191,7 @@ void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code) {
#endif // PDF_ENABLE_XFA
}
-DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) {
+DLLEXPORT int STDCALL FPDFDoc_GetPageMode(FPDF_DOCUMENT document) {
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return PAGEMODE_UNKNOWN;
diff --git a/public/fpdf_ext.h b/public/fpdf_ext.h
index d00c568241..2f7d7ddf64 100644
--- a/public/fpdf_ext.h
+++ b/public/fpdf_ext.h
@@ -88,7 +88,7 @@ FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info);
// Returns one of the |PAGEMODE_*| flags defined above.
//
// The page mode defines how the document should be initially displayed.
-DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document);
+DLLEXPORT int STDCALL FPDFDoc_GetPageMode(FPDF_DOCUMENT document);
#ifdef __cplusplus
} // extern "C"