From a5f2f90c8d1eda37de553c9e28c14d94c17d8628 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 1 Nov 2021 08:04:49 +0100 Subject: [PATCH] Fix legacy build Signed-off-by: Stefan Weil --- src/api/baseapi.cpp | 4 +--- src/tesseract.cpp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index e98331b72d..fe0040a853 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -29,9 +29,7 @@ #include "dict.h" // for Dict #include "elst.h" // for ELIST_ITERATOR, ELISTIZE, ELISTIZEH #include "environ.h" // for l_uint8 -#ifndef DISABLED_LEGACY_ENGINE -# include "equationdetect.h" // for EquationDetect -#endif +#include "equationdetect.h" // for EquationDetect, destructor of equ_detect_ #include "errcode.h" // for ASSERT_HOST #include "helpers.h" // for IntCastRounded, chomp_string #include "host.h" // for MAX_PATH diff --git a/src/tesseract.cpp b/src/tesseract.cpp index fbbddb87d4..0f70241406 100644 --- a/src/tesseract.cpp +++ b/src/tesseract.cpp @@ -25,6 +25,7 @@ #if defined(__USE_GNU) # include // for feenableexcept #endif +#include // for INT_MIN, INT_MAX #include // for std::getenv #include #include // for std::map