util: Promote __builtin_types_compatible_p compat
Signed-off-by: Rob Clark <robdclark@chromium.org> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7941>
This commit is contained in:
@@ -57,6 +57,12 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* __builtin_types_compatible_p compat
|
||||
*/
|
||||
#if defined(__cplusplus) || !defined(HAVE___BUILTIN_TYPES_COMPATIBLE_P)
|
||||
# define __builtin_types_compatible_p(type1, type2) (1)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Static (compile-time) assertion.
|
||||
|
Reference in New Issue
Block a user