Adjust ios_base::failure workaround for GCC 7
* Use new ABI under GCC >= 7 * See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
This commit is contained in:
parent
5388337bcc
commit
dc73538170
|
@ -1,6 +1,12 @@
|
||||||
// ensure the old ABI is used
|
// ensure the old ABI is used under libstd++ < 7 and the new ABI under libstd++ >= 7
|
||||||
// TODO: add condition for GCC version if GCC Bug 66145 is fixed
|
#ifdef _GLIBCXX_RELEASE
|
||||||
|
#include <bits/c++config.h>
|
||||||
|
#if _GLIBCXX_RELEASE >= 7
|
||||||
|
#define _GLIBCXX_USE_CXX11_ABI 1
|
||||||
|
#else
|
||||||
#define _GLIBCXX_USE_CXX11_ABI 0
|
#define _GLIBCXX_USE_CXX11_ABI 0
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "./catchiofailure.h"
|
#include "./catchiofailure.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue