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:
Martchus 2017-01-19 21:57:55 +01:00
parent 5388337bcc
commit dc73538170
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
// ensure the old ABI is used
// TODO: add condition for GCC version if GCC Bug 66145 is fixed
// ensure the old ABI is used under libstd++ < 7 and the new ABI under libstd++ >= 7
#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
#endif
#endif
#include "./catchiofailure.h"