Mesa (main): intel: Fix build of mi_builder_tests by including c99_compat.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 7 08:47:33 UTC 2022


Module: Mesa
Branch: main
Commit: 8381f64251d2cf79a8b65a600264dcfba6d1fa9b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8381f64251d2cf79a8b65a600264dcfba6d1fa9b

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Mon Jun  6 16:14:32 2022 -0700

intel: Fix build of mi_builder_tests by including c99_compat.h

We need this so C++ will understand "restrict" which is used in the
genxml output.

Fixes: 9f717b5f23c ("util: remove needless c99_compat.h includes")
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Acked-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16899>

---

 src/intel/common/tests/mi_builder_test.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/common/tests/mi_builder_test.cpp b/src/intel/common/tests/mi_builder_test.cpp
index 343ecb628ce..4d0f868da6d 100644
--- a/src/intel/common/tests/mi_builder_test.cpp
+++ b/src/intel/common/tests/mi_builder_test.cpp
@@ -27,6 +27,7 @@
 
 #include <gtest/gtest.h>
 
+#include "c99_compat.h"
 #include "dev/intel_device_info.h"
 #include "drm-uapi/i915_drm.h"
 #include "genxml/gen_macros.h"



More information about the mesa-commit mailing list