#if __has_include(<mutex>)

This commit is contained in:
qPCR4vir 2017-09-07 12:32:53 +02:00
parent 263776812e
commit 252b8cbf65

View File

@ -173,6 +173,7 @@
//Assume the std::thread is not implement on MinGW //Assume the std::thread is not implement on MinGW
//But some toolchains may implement std::thread. //But some toolchains may implement std::thread.
// it seems that MinGW 6.3 and 7.1 have std::thread
#ifdef NANA_MINGW #ifdef NANA_MINGW
# ifndef STD_THREAD_NOT_SUPPORTED # ifndef STD_THREAD_NOT_SUPPORTED
# define STD_THREAD_NOT_SUPPORTED # define STD_THREAD_NOT_SUPPORTED
@ -220,6 +221,9 @@
# if __has_include(<filesystem>) # if __has_include(<filesystem>)
# undef STD_FILESYSTEM_NOT_SUPPORTED # undef STD_FILESYSTEM_NOT_SUPPORTED
# endif # endif
# if __has_include(<mutex>)
# undef STD_THREAD_NOT_SUPPORTED
# endif
#endif #endif
#endif // NANA_CXX_DEFINES_INCLUDED #endif // NANA_CXX_DEFINES_INCLUDED