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[];