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

[windows]win32 thread-local support (#4409)

上级 40eb11c1
......@@ -59,8 +59,11 @@
// Thread local storage will be ignored because the linker for iOS 8 does not
// support it.
#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
#else
#error "C++11 support is required for paddle-lite compilation."
#error "[Paddle-Lite] C++11 support is required for paddle-lite compilation."
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册