render: use portable HAS_INCLUDE() wrapper instead of __has_include()

This commit is contained in:
Craig Barnes 2021-02-09 03:12:26 +00:00
parent 79e054faff
commit e19db15104
2 changed files with 9 additions and 1 deletions

View file

@ -27,6 +27,12 @@
#define HAS_BUILTIN(x) 0
#endif
#ifdef __has_include
#define HAS_INCLUDE(x) __has_include(x)
#else
#define HAS_INCLUDE(x) 0
#endif
#ifdef __has_feature
#define HAS_FEATURE(x) __has_feature(x)
#else