… | |
… | |
98 | #define ECB_GCC_VERSION(major,minor) (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) |
98 | #define ECB_GCC_VERSION(major,minor) (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) |
99 | #endif |
99 | #endif |
100 | |
100 | |
101 | #define ECB_CLANG_VERSION(major,minor) (__clang_major__ > (major) || (__clang_major__ == (major) && __clang_minor__ >= (minor))) |
101 | #define ECB_CLANG_VERSION(major,minor) (__clang_major__ > (major) || (__clang_major__ == (major) && __clang_minor__ >= (minor))) |
102 | |
102 | |
103 | #if __clang__ && defined(__has_builtin) |
103 | #if __clang__ && defined __has_builtin |
104 | #define ECB_CLANG_BUILTIN(x) __has_builtin(x) |
104 | #define ECB_CLANG_BUILTIN(x) __has_builtin (x) |
105 | #else |
105 | #else |
106 | #define ECB_CLANG_BUILTIN(x) 0 |
106 | #define ECB_CLANG_BUILTIN(x) 0 |
107 | #endif |
107 | #endif |
108 | |
108 | |
109 | #if __clang__ && defined(__has_extension) |
109 | #if __clang__ && defined __has_extension |
110 | #define ECB_CLANG_EXTENSION(x) __has_extension(x) |
110 | #define ECB_CLANG_EXTENSION(x) __has_extension (x) |
111 | #else |
111 | #else |
112 | #define ECB_CLANG_EXTENSION(x) 0 |
112 | #define ECB_CLANG_EXTENSION(x) 0 |
113 | #endif |
113 | #endif |
114 | |
114 | |
115 | #define ECB_CPP (__cplusplus+0) |
115 | #define ECB_CPP (__cplusplus+0) |