Re: PR 89864 - gcc fails to build/bootstrap with XCode 10.2

2019-04-04 Thread Erik Schnetter
On Thu, Apr 4, 2019 at 3:11 AM Iain Sandoe wrote: > Hi Eric, > > Thanks for working on this! > > > On 4 Apr 2019, at 04:00, Erik Schnetter wrote: > > > > Fixinclude the header file that incorrectly uses the C-only > > _Atomic keyword when compiled as C++

PR 89864 - gcc fails to build/bootstrap with XCode 10.2

2019-04-03 Thread Erik Schnetter
extern "C" { #include #include #include +#if defined(__cplusplus) && __cplusplus >= 201103L +# define _Atomic volatile +#endif #include +#if defined(__cplusplus) && __cplusplus >= 201103L +# undef _Atomic +#endif #include #include #include -- Erik Schnetter http://www.perimeterinstitute.ca/personal/eschnetter/