mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Fixed build broken by previous commits that added use of string in low-level code
This commit is contained in:
parent
df41eab6aa
commit
aee910a7bf
@ -2,7 +2,7 @@ AM_CPPFLAGS += \
|
||||
-I$(top_srcdir)/ccutil -I$(top_srcdir)/cutil \
|
||||
-I$(top_srcdir)/viewer \
|
||||
-I$(top_srcdir)/opencl
|
||||
AM_CPPFLAGS += $(OPENCL_CPPFLAGS)
|
||||
AM_CPPFLAGS += $(OPENCL_CPPFLAGS) -DUSE_STD_NAMESPACE
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
|
@ -1,6 +1,7 @@
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
SUBDIRS =
|
||||
AM_CXXFLAGS =
|
||||
AM_CPPFLAGS = -DUSE_STD_NAMESPACE
|
||||
|
||||
if !NO_TESSDATA_PREFIX
|
||||
AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/
|
||||
|
@ -53,6 +53,12 @@
|
||||
#define SIGNED signed
|
||||
#endif
|
||||
|
||||
// Fix to map between google use of string without std and everywhere else.
|
||||
#ifdef USE_STD_NAMESPACE
|
||||
#include <string>
|
||||
using std::string;
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "platform.h"
|
||||
|
||||
// Maximum number of characters that can be stored in a UNICHAR. Must be
|
||||
// at least 4. Must not exceed 31 without changing the coding of length.
|
||||
|
@ -1,7 +1,7 @@
|
||||
AM_CPPFLAGS += \
|
||||
-I$(top_srcdir)/cutil -I$(top_srcdir)/ccutil \
|
||||
-I$(top_srcdir)/ccstruct -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/viewer
|
||||
-I$(top_srcdir)/viewer -DUSE_STD_NAMESPACE
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
|
@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/ccutil -I$(top_srcdir)/viewer
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/ccutil -I$(top_srcdir)/viewer -DUSE_STD_NAMESPACE
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
|
@ -1,5 +1,5 @@
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/cutil -I$(top_srcdir)/ccutil \
|
||||
-I$(top_srcdir)/ccstruct -I$(top_srcdir)/viewer
|
||||
-I$(top_srcdir)/ccstruct -I$(top_srcdir)/viewer -DUSE_STD_NAMESPACE
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
|
@ -1,7 +1,7 @@
|
||||
AM_CPPFLAGS += \
|
||||
-I$(top_srcdir)/ccutil -I$(top_srcdir)/cutil -I$(top_srcdir)/ccstruct \
|
||||
-I$(top_srcdir)/arch -I$(top_srcdir)/viewer -I$(top_srcdir)/classify \
|
||||
-I$(top_srcdir)/dict -I$(top_srcdir)/lstm
|
||||
-I$(top_srcdir)/dict -I$(top_srcdir)/lstm -DUSE_STD_NAMESPACE
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
SUBDIRS =
|
||||
AM_CXXFLAGS = $(OPENMP_CXXFLAGS)
|
||||
|
@ -2,7 +2,7 @@ AM_CPPFLAGS += \
|
||||
-I$(top_srcdir)/ccstruct -I$(top_srcdir)/ccutil \
|
||||
-I$(top_srcdir)/cutil -I$(top_srcdir)/classify \
|
||||
-I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/viewer
|
||||
-I$(top_srcdir)/viewer -DUSE_STD_NAMESPACE
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
|
Loading…
Reference in New Issue
Block a user