Skip to content

Commit

Permalink
Fix compiler errors when including baseapi.h and capi.h
Browse files Browse the repository at this point in the history
Including baseapi.h before capi.h is now possible.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Apr 15, 2018
1 parent 83f311f commit 9612ca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#ifndef API_CAPI_H_
#define API_CAPI_H_

#if defined(TESSERACT_API_BASEAPI_H_) && !defined(TESS_CAPI_INCLUDE_BASEAPI)
# define TESS_CAPI_INCLUDE_BASEAPI
#endif

#ifdef TESS_CAPI_INCLUDE_BASEAPI
# include "baseapi.h"
# include "pageiterator.h"
Expand Down

0 comments on commit 9612ca4

Please sign in to comment.