diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 03:12:26 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-02-09 03:14:08 +0000 |
| commit | e19db15104a2fcb0df4f59cea117a1025b3affe5 (patch) | |
| tree | 9a16c7bd860511a1ae5787cd1a1be5dd5048e59d /macros.h | |
| parent | Merge branch 'refactor-key-bindings' (diff) | |
render: use portable HAS_INCLUDE() wrapper instead of __has_include()
Diffstat (limited to 'macros.h')
| -rw-r--r-- | macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
