Skip to content

Commit

Permalink
Remove unneeded code for old Leptonica versions
Browse files Browse the repository at this point in the history
Tesseract requires Leptonica 1.74 or newer,
so that code is no longer needed.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Apr 22, 2017
1 parent 325de57 commit a3e0c10
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a3e0c10

Please sign in to comment.