mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 09:52:40 +08:00
Remove unneeded code for old Leptonica versions
Tesseract requires Leptonica 1.74 or newer, so that code is no longer needed. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
325de57d54
commit
a3e0c10dc7
@ -27,21 +27,8 @@
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
Convenience macro to test the version of Leptonica.
|
||||
*/
|
||||
#if defined(LIBLEPT_MAJOR_VERSION) && defined(LIBLEPT_MINOR_VERSION)
|
||||
#define TESSERACT_LIBLEPT_PREREQ(maj, min) \
|
||||
((LIBLEPT_MAJOR_VERSION) > (maj) || \
|
||||
((LIBLEPT_MAJOR_VERSION) == (maj) && (LIBLEPT_MINOR_VERSION) >= (min)))
|
||||
#else
|
||||
#define TESSERACT_LIBLEPT_PREREQ(maj, min) 0
|
||||
#endif
|
||||
|
||||
#if TESSERACT_LIBLEPT_PREREQ(1, 73)
|
||||
#define CALLOC LEPT_CALLOC
|
||||
#define FREE LEPT_FREE
|
||||
#endif
|
||||
|
||||
#ifdef USE_OPENCL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user