mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-14 00:31:47 +08:00
Fix build for Intel Compiler (issue #2736)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
87291fff62
commit
13237d8566
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
|
|
||||||
#if __cplusplus < 201402 || defined(__clang__) // C++11
|
#if __cplusplus < 201402 || defined(__clang__) || defined(__INTEL_COMPILER) // C++11
|
||||||
|
|
||||||
double TanhTable[kTableSize];
|
double TanhTable[kTableSize];
|
||||||
double LogisticTable[kTableSize];
|
double LogisticTable[kTableSize];
|
||||||
|
@ -35,7 +35,7 @@ constexpr int kTableSize = 4096;
|
|||||||
// Scale factor for float arg to int index.
|
// Scale factor for float arg to int index.
|
||||||
constexpr double kScaleFactor = 256.0;
|
constexpr double kScaleFactor = 256.0;
|
||||||
|
|
||||||
#if __cplusplus < 201402 || defined(__clang__) // C++11
|
#if __cplusplus < 201402 || defined(__clang__) || defined(__INTEL_COMPILER) // C++11
|
||||||
|
|
||||||
extern double TanhTable[];
|
extern double TanhTable[];
|
||||||
extern double LogisticTable[];
|
extern double LogisticTable[];
|
||||||
|
Loading…
Reference in New Issue
Block a user