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

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

上级 a74791b6
......@@ -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.
先完成此消息的编辑!
想要评论请 注册