Mesa (master): util: fix no-op macro (bad number of arguments)
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 24 08:15:00 UTC 2019
Module: Mesa
Branch: master
Commit: f986741a91b80091b510752b707a82f5b19440ee
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f986741a91b80091b510752b707a82f5b19440ee
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Tue Jul 23 10:03:26 2019 +0100
util: fix no-op macro (bad number of arguments)
Fixes: b8e077daee4d6369d774 ("util: no-op __builtin_types_compatible_p() for non-GCC compilers")
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/util/u_vector.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/u_vector.h b/src/util/u_vector.h
index 6807748e3b1..95f35c59c7d 100644
--- a/src/util/u_vector.h
+++ b/src/util/u_vector.h
@@ -81,7 +81,7 @@ u_vector_finish(struct u_vector *queue)
}
#ifndef __GNUC__
-#define __builtin_types_compatible_p(x) 1
+#define __builtin_types_compatible_p(t1, t2) 1
#endif
#define u_vector_foreach(elem, queue) \
More information about the mesa-commit
mailing list