Re: [PATCH] PR libstdc++/80446 cope with libc defining __has_builtin

2017-04-19 Thread Jonathan Wakely
On 19/04/17 11:49 +0100, Jonathan Wakely wrote: Both newlib and FreeBSD have this in libc headers: #ifndef __has_builtin #define __has_builtin(x) 0 #endif This means our attempts to use #ifdef __has_builtin aren't reliable, so we need a different approach. With this patch we don't care whether

[PATCH] PR libstdc++/80446 cope with libc defining __has_builtin

2017-04-19 Thread Jonathan Wakely
Both newlib and FreeBSD have this in libc headers: #ifndef __has_builtin #define __has_builtin(x) 0 #endif This means our attempts to use #ifdef __has_builtin aren't reliable, so we need a different approach. With this patch we don't care whether it's defined or not, only its value. PR