mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
util: add macro to support gcc/clang poison
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(back ported from commit f11aab743b)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22351>
This commit is contained in:
parent
035aa34ed5
commit
af2148e261
1 changed files with 8 additions and 0 deletions
|
|
@ -483,4 +483,12 @@ typedef int lock_cap_t;
|
|||
#define CONCAT3(a, b, c) PASTE3(a, b, c)
|
||||
#define CONCAT4(a, b, c, d) PASTE4(a, b, c, d)
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define PRAGMA_POISON(X) DO_PRAGMA( GCC poison X )
|
||||
#elif defined(__clang__)
|
||||
#define PRAGMA_POISON(X) DO_PRAGMA( clang poison X )
|
||||
#else
|
||||
#define PRAGMA_POISON
|
||||
#endif
|
||||
|
||||
#endif /* UTIL_MACROS_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue