Re: [PATCH] libcody: Fix build for older GCC versions

2020-12-16 Thread Nathan Sidwell
On 12/16/20 8:05 AM, Jonathan Wakely wrote: Before CWG DR 1955 the controlling expression for an #elif must be syntactically correct, meaning this won't compile with C++11 compilers such as gcc 4.8: The solution is to define __has_include(X) as 0 for compilers that don't support it. The second

[PATCH] libcody: Fix build for older GCC versions

2020-12-16 Thread Jonathan Wakely via Gcc-patches
Before CWG DR 1955 the controlling expression for an #elif must be syntactically correct, meaning this won't compile with C++11 compilers such as gcc 4.8: The solution is to define __has_include(X) as 0 for compilers that don't support it. The second problem is that when is found, it is used wit