Jeremy Sequoia added the comment: sys/cdefs.h (on new enough darwin) does this for such cases:
#ifndef __has_include #define __has_include(x) 0 #endif but of course that isn't present in sys/cdefs.h on older SDKs, so you can just shove that above the check and it should fallback the way you want. Using gcc-4.2 on Sierra would end up with the wrong result, but that's not a supported configuration. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com