loguru
loguru copied to clipboard
Fix MINGW32 errors and warnings
- Include
share.hfor_SH_DENYNO’s definition - Define
NOMINMAXonly if not already defined; MINGW warns of redefinition sincebits/os_defines.hincluded by<algorithm>already defines it - Use C++11
thread_localinstead of the non-standard option of__declspec(thread)1
This also fixes #219.
Used thread_local within LOGURU_WINTHREADS macro since both MinGW and MSVC 2015 (7+ years old now) support it.
@emilk Please let me know if you've concerns around this.