From 13237d856644d85214800fe9579b46f5aa0401fd Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 30 Oct 2019 10:09:44 +0100 Subject: [PATCH] Fix build for Intel Compiler (issue #2736) Signed-off-by: Stefan Weil --- src/lstm/functions.cpp | 2 +- src/lstm/functions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lstm/functions.cpp b/src/lstm/functions.cpp index 25399ed4..ddd121d4 100644 --- a/src/lstm/functions.cpp +++ b/src/lstm/functions.cpp @@ -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]; diff --git a/src/lstm/functions.h b/src/lstm/functions.h index 8ea6d687..d0f4f768 100644 --- a/src/lstm/functions.h +++ b/src/lstm/functions.h @@ -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[];