mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-08 08:58:02 +02:00
Xfuncproto.h: Define __has_feature() if it isn't already
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
3e975a39b0
commit
4855c9229f
1 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ in this Software without prior written authorization from The Open Group.
|
|||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
#ifndef __has_feature
|
||||
# define __has_feature(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
|
||||
/* Added in X11R6.9, so available in any version of modular xproto */
|
||||
#if __has_attribute(__sentinel__) || (defined(__GNUC__) && (__GNUC__ >= 4))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue