Skip to content

Commit

Permalink
Fix build for Intel Compiler (issue #2736)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil authored and zdenop committed Nov 11, 2019
1 parent 87291ff commit 13237d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lstm/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace tesseract {

#if __cplusplus < 201402 || defined(__clang__) // C++11
#if __cplusplus < 201402 || defined(__clang__) || defined(__INTEL_COMPILER) // C++11

double TanhTable[kTableSize];
double LogisticTable[kTableSize];
Expand Down
2 changes: 1 addition & 1 deletion src/lstm/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ constexpr int kTableSize = 4096;
// Scale factor for float arg to int index.
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 LogisticTable[];
Expand Down

0 comments on commit 13237d8

Please sign in to comment.