This commit is contained in:
Siarhei Fedartsou 2022-09-09 14:39:03 +02:00
parent 99b90125d7
commit 7f797ecf12

View File

@ -7,6 +7,8 @@
// This is needed because libstdc++ itself uses this API - its not
// just an issue of your code using it, ughhh
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Werror"
// Note: only necessary on Linux
#ifdef __linux__
#define _ENABLE_GLIBC_WORKAROUND
@ -14,6 +16,7 @@
#else
#warning not building with workaround
#endif
#pragma GCC diagnostic pop
#ifdef _ENABLE_GLIBC_WORKAROUND
namespace std