mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Check if access __attribute__ is supported before trying to use it.
parent
639cfa43d2
commit
c1fddb9a6a
|
@ -136,8 +136,12 @@
|
||||||
# endif
|
# endif
|
||||||
#endif /* __GNUC__ || __clang__ */
|
#endif /* __GNUC__ || __clang__ */
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined __has_attribute
|
||||||
# define NOACCESS(args) __attribute__ ((access (none, args)))
|
# if __has_attribute (access)
|
||||||
|
# define NOACCESS(args) __attribute__ ((access (none, args)))
|
||||||
|
# else
|
||||||
|
# define NOACCESS(args)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define NOACCESS(args)
|
# define NOACCESS(args)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue