summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-08 15:25:44 +0100
committerGitHub <noreply@github.com>2021-01-08 15:25:44 +0100
commitfda1fbf61cbce0b857a14122fe8d6341c6411a98 (patch)
tree84e4e5110d82427bb358ef059cc50551aacf0073 /src/stdafx.h
parent4059ccf863909a777932f6d8f2e937a2bf97b7bb (diff)
downloadopenttd-fda1fbf61cbce0b857a14122fe8d6341c6411a98.tar.xz
Revert c1fddb9, 639cfa4: "Codechange: Check if access __attribute__ is supported before trying to use it." (#8526)
This reverts commit c1fddb9a6ae5c3af6865461a7295788a341011a2 and 639cfa43d23aa142cabbf2f08ec20a2133b0503e. access_mode "none" is only supported by GCC11, but introduced after it branched. So there are GCC11.0s out there that do not support it. We will have to wait for GCC11.1 to hit before we can re-add this.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 0244e567d..e5cb9205f 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -137,16 +137,6 @@
# endif
#endif /* __GNUC__ || __clang__ */
-#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
# define CDECL