Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate __has_attribute test from actual usage, as per GCC
documentaiton. The first `#if' test succeeds only when the operator is supported by the version of GCC (or another compiler) being used. Only when that test succeeds is it valid to use __has_attribute as a preprocessor operator. As a result, combining the two tests into a single expression as shown below would only be valid with a compiler that supports the operator but not with others that don't. https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005fattribute.html
- Loading branch information
943f8d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rfm sorry accidentally pushed to master, I created a branch but forgot to switch it.
I thought that reverting last commit and forcing a push was dirtier. In case this commit is an issue or causes issue, feel free to revert it by reverse apply. It really shouldn't though!
943f8d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.