Index: fpdfsdk/src/fpdf_progressive.cpp |
diff --git a/fpdfsdk/src/fpdf_progressive.cpp b/fpdfsdk/src/fpdf_progressive.cpp |
index b13eb553cce1255a90fab3152edfe5d557012f0f..463ccf4c536399a714bec575a8515c8f37e9c0be 100644 |
--- a/fpdfsdk/src/fpdf_progressive.cpp |
+++ b/fpdfsdk/src/fpdf_progressive.cpp |
@@ -9,6 +9,17 @@ |
#include "../include/fsdk_define.h" |
#include "../include/fsdk_rendercontext.h" |
+// These checks are here because core/ and public/ cannot depend on each other. |
+static_assert(CPDF_ProgressiveRenderer::Ready == FPDF_RENDER_READER, |
+ "CPDF_ProgressiveRenderer::Ready value mismatch"); |
+static_assert(CPDF_ProgressiveRenderer::ToBeContinued == |
+ FPDF_RENDER_TOBECOUNTINUED, |
+ "CPDF_ProgressiveRenderer::ToBeContinued value mismatch"); |
+static_assert(CPDF_ProgressiveRenderer::Done == FPDF_RENDER_DONE, |
+ "CPDF_ProgressiveRenderer::Done value mismatch"); |
+static_assert(CPDF_ProgressiveRenderer::Failed == FPDF_RENDER_FAILED, |
+ "CPDF_ProgressiveRenderer::Failed value mismatch"); |
+ |
DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start(FPDF_BITMAP bitmap, |
FPDF_PAGE page, |
int start_x, |