未验证 提交 d1123c03 编写于 作者: 石晓伟 提交者: GitHub

[windows]win32 thread-local support, test=develop (#4401)

上级 5e964b02
...@@ -59,8 +59,11 @@ ...@@ -59,8 +59,11 @@
// Thread local storage will be ignored because the linker for iOS 8 does not // Thread local storage will be ignored because the linker for iOS 8 does not
// support it. // support it.
#define LITE_THREAD_LOCAL #define LITE_THREAD_LOCAL
#elif __cplusplus >= 201103 #elif defined(__cplusplus) && (__cplusplus >= 201103)
#define LITE_THREAD_LOCAL thread_local
#elif defined(_WIN32)
// The MSVC compiler does not support standards switches for C++11.
#define LITE_THREAD_LOCAL thread_local #define LITE_THREAD_LOCAL thread_local
#else #else
#error "C++11 support is required for paddle-lite compilation." #error "[Paddle-Lite] C++11 support is required for paddle-lite compilation."
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册