Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Leptonica 1.73 #205

Merged
merged 1 commit into from Jan 31, 2016

Conversation

devurandom
Copy link
Contributor

CALLOC and FREE were renamed to LEPT_*

The alternative to using the TESSERACT_LIBLEPT_PREREQ macro introduced in this pull request, to define CALLOC and FREE to their new names, would be to depend on Leptonica >=1.73 and use the LEPT_* variants in Tesseract's code directly.

I opted for this pull request's approach for better backward compatibility.

See-Also: https://bugs.gentoo.org/show_bug.cgi?id=573382

http://www.leptonica.org/source/version-notes.html:
       Naming changes (to avoid collisions):
         #defines MALLOC --> LEPT_MALLOC, CALLOC --> LEPT_CALLOC, etc.
         ByteBuffer --> L_ByteBuffer

Introduction of the TESSERACT_LIBLEPT_PREREQ macro allows backward compatibility with Leptonica <1.73.
zdenop added a commit that referenced this pull request Jan 31, 2016
@zdenop zdenop merged commit ec44221 into tesseract-ocr:master Jan 31, 2016
@devurandom devurandom deleted the fix/leptonica-1.73-compat branch January 31, 2016 23:26
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this pull request Mar 28, 2021
…73-compat

Compatibility with Leptonica 1.73
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this pull request Mar 28, 2021
…73-compat

Compatibility with Leptonica 1.73
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this pull request Mar 28, 2021
…73-compat

Compatibility with Leptonica 1.73
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this pull request Mar 28, 2021
…73-compat

Compatibility with Leptonica 1.73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants