Skip to content

Commit

Permalink
modify macos github action
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Aug 5, 2022
1 parent 2a1c5b1 commit 80ee073
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions BoundingTextRect.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ along with Capture2Text. If not, see <http://www.gnu.org/licenses/>.
#define BOUNDING_TEXT_RECT_H

#include <QList>
#if defined( Q_OS_MAC )
#include "leptonica/allheaders.h"
#else
#include "allheaders.h"
#endif
#include "PreProcessCommon.h"


Expand Down
4 changes: 4 additions & 0 deletions Furigana.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ along with Capture2Text. If not, see <http://www.gnu.org/licenses/>.
#ifndef FURIGANA_H
#define FURIGANA_H

#if defined( Q_OS_MAC )
#include "leptonica/allheaders.h"
#else
#include "allheaders.h"
#endif

class Furigana
{
Expand Down
9 changes: 7 additions & 2 deletions OcrEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ along with Capture2Text. If not, see <http://www.gnu.org/licenses/>.
#include <QMutex>
#include <QRect>

#ifdef __WIN32 || Q_OS_MAC
#if defined( Q_OS_WIN32 ) || defined( Q_OS_MAC )
#include "tesseract\baseapi.h"
#else
#include "baseapi.h"
#endif
#include "allheaders.h"


#if defined( Q_OS_MAC )
#include "leptonica/allheaders.h"
#else
#include "allheaders.h"
#endif

class OcrEngine
{
public:
Expand Down
4 changes: 4 additions & 0 deletions PreProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ along with Capture2Text. If not, see <http://www.gnu.org/licenses/>.
#define PRE_PROCESS_H

#include <QImage>
#if defined( Q_OS_MAC )
#include "leptonica/allheaders.h"
#else
#include "allheaders.h"
#endif
#include "PreProcessCommon.h"

class PreProcess
Expand Down

0 comments on commit 80ee073

Please sign in to comment.