mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 14:58:22 +00:00
Codechange: Check if access __attribute__ is supported before trying to use it.
This commit is contained in:
parent
639cfa43d2
commit
c1fddb9a6a
@ -136,11 +136,15 @@
|
||||
# endif
|
||||
#endif /* __GNUC__ || __clang__ */
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#if defined __has_attribute
|
||||
# if __has_attribute (access)
|
||||
# define NOACCESS(args) __attribute__ ((access (none, args)))
|
||||
# else
|
||||
# define NOACCESS(args)
|
||||
# endif
|
||||
#else
|
||||
# define NOACCESS(args)
|
||||
#endif
|
||||
|
||||
#if defined(__WATCOMC__)
|
||||
# define NORETURN
|
||||
|
Loading…
Reference in New Issue
Block a user