fix build with leptonica >=1.82

This commit is contained in:
zdenop 2023-08-30 14:22:29 +02:00
parent f907620a1a
commit ad0ceb041a
5 changed files with 20 additions and 0 deletions

View File

@ -23,6 +23,10 @@
#endif
#include "allheaders.h"
#if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82)
// The public API of Leptonica 1.83.0 hides details of some data
#include <pix_internal.h>
#endif
#include "cube_object.h"
#include "cube_reco_context.h"

View File

@ -27,6 +27,10 @@
#include "cube_reco_context.h"
#include "cube_object.h"
#include "allheaders.h"
#if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82)
// The public API of Leptonica 1.83.0 hides details of some data
#include <pix_internal.h>
#endif
namespace tesseract {
class CubeLineObject {

View File

@ -28,6 +28,10 @@
#include "cube_reco_context.h"
#include "allheaders.h"
#if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82)
// The public API of Leptonica 1.83.0 hides details of some data
#include <pix_internal.h>
#endif
namespace tesseract {

View File

@ -30,6 +30,10 @@
#include "const.h"
#include "char_set.h"
#include "char_samp.h"
#if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82)
// The public API of Leptonica 1.83.0 hides details of some data
#include <pix_internal.h>
#endif
namespace tesseract {
class CubeUtils {

View File

@ -26,6 +26,10 @@
#include "allheaders.h"
#include "tordmain.h"
#include "statistc.h"
#if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82)
// The public API of Leptonica 1.83.0 hides details of some data
#include <pix_internal.h>
#endif
// Flags controlling the debugging information for shiro-rekha splitting
// strategies.