File tree 9 files changed +14
-6
lines changed
9 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ AM_CPPFLAGS += \
2
2
-I$(top_srcdir ) /ccutil -I$(top_srcdir ) /cutil \
3
3
-I$(top_srcdir ) /viewer \
4
4
-I$(top_srcdir ) /opencl
5
- AM_CPPFLAGS += $(OPENCL_CPPFLAGS )
5
+ AM_CPPFLAGS += $(OPENCL_CPPFLAGS ) -DUSE_STD_NAMESPACE
6
6
7
7
if VISIBILITY
8
8
AM_CPPFLAGS += -DTESS_EXPORTS \
Original file line number Diff line number Diff line change 1
1
AUTOMAKE_OPTIONS = subdir-objects
2
2
SUBDIRS =
3
3
AM_CXXFLAGS =
4
+ AM_CPPFLAGS = -DUSE_STD_NAMESPACE
4
5
5
6
if !NO_TESSDATA_PREFIX
6
7
AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/
Original file line number Diff line number Diff line change 53
53
#define SIGNED signed
54
54
#endif
55
55
56
+ // Fix to map between google use of string without std and everywhere else.
57
+ #ifdef USE_STD_NAMESPACE
58
+ #include < string>
59
+ using std::string;
60
+ #endif
61
+
56
62
#if defined(_WIN32) || defined(__CYGWIN__)
57
63
#ifndef M_PI
58
64
#define M_PI 3.14159265358979323846
Original file line number Diff line number Diff line change 24
24
#include < string.h>
25
25
#include < string>
26
26
#include < vector>
27
+ #include " platform.h"
27
28
28
29
// Maximum number of characters that can be stored in a UNICHAR. Must be
29
30
// at least 4. Must not exceed 31 without changing the coding of length.
Original file line number Diff line number Diff line change 1
1
AM_CPPFLAGS += \
2
2
-I$(top_srcdir ) /cutil -I$(top_srcdir ) /ccutil \
3
3
-I$(top_srcdir ) /ccstruct -I$(top_srcdir ) /dict \
4
- -I$(top_srcdir ) /viewer
4
+ -I$(top_srcdir ) /viewer -DUSE_STD_NAMESPACE
5
5
6
6
if VISIBILITY
7
7
AM_CPPFLAGS += -DTESS_EXPORTS \
Original file line number Diff line number Diff line change 1
- AM_CPPFLAGS += -I$(top_srcdir ) /ccutil -I$(top_srcdir ) /viewer
1
+ AM_CPPFLAGS += -I$(top_srcdir ) /ccutil -I$(top_srcdir ) /viewer -DUSE_STD_NAMESPACE
2
2
3
3
if VISIBILITY
4
4
AM_CPPFLAGS += -DTESS_EXPORTS \
Original file line number Diff line number Diff line change 1
1
AM_CPPFLAGS += -I$(top_srcdir ) /cutil -I$(top_srcdir ) /ccutil \
2
- -I$(top_srcdir ) /ccstruct -I$(top_srcdir ) /viewer
2
+ -I$(top_srcdir ) /ccstruct -I$(top_srcdir ) /viewer -DUSE_STD_NAMESPACE
3
3
4
4
if VISIBILITY
5
5
AM_CPPFLAGS += -DTESS_EXPORTS \
Original file line number Diff line number Diff line change 1
1
AM_CPPFLAGS += \
2
2
-I$(top_srcdir ) /ccutil -I$(top_srcdir ) /cutil -I$(top_srcdir ) /ccstruct \
3
3
-I$(top_srcdir ) /arch -I$(top_srcdir ) /viewer -I$(top_srcdir ) /classify \
4
- -I$(top_srcdir ) /dict -I$(top_srcdir ) /lstm
4
+ -I$(top_srcdir ) /dict -I$(top_srcdir ) /lstm -DUSE_STD_NAMESPACE
5
5
AUTOMAKE_OPTIONS = subdir-objects
6
6
SUBDIRS =
7
7
AM_CXXFLAGS = $(OPENMP_CXXFLAGS )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ AM_CPPFLAGS += \
2
2
-I$(top_srcdir ) /ccstruct -I$(top_srcdir ) /ccutil \
3
3
-I$(top_srcdir ) /cutil -I$(top_srcdir ) /classify \
4
4
-I$(top_srcdir ) /dict \
5
- -I$(top_srcdir ) /viewer
5
+ -I$(top_srcdir ) /viewer -DUSE_STD_NAMESPACE
6
6
7
7
if VISIBILITY
8
8
AM_CPPFLAGS += -DTESS_EXPORTS \
You can’t perform that action at this time.
0 commit comments