|
@@ -26,6 +26,8 @@ Fixes build errors with uClibc and gcc-9.3.0:
|
|
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13898
|
|
Upstream: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13898
|
|
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
|
+[rebased for 23.2.0]
|
|
|
|
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
---
|
|
---
|
|
src/util/compiler.h | 10 ++++++++++
|
|
src/util/compiler.h | 10 ++++++++++
|
|
src/util/macros.h | 1 +
|
|
src/util/macros.h | 1 +
|
|
@@ -35,10 +37,11 @@ diff --git a/src/util/compiler.h b/src/util/compiler.h
|
|
index d184ad455af..b5c56807acc 100644
|
|
index d184ad455af..b5c56807acc 100644
|
|
--- a/src/util/compiler.h
|
|
--- a/src/util/compiler.h
|
|
+++ b/src/util/compiler.h
|
|
+++ b/src/util/compiler.h
|
|
-@@ -36,6 +36,16 @@
|
|
|
|
|
|
+@@ -35,6 +35,17 @@
|
|
|
|
|
|
- #include <assert.h>
|
|
|
|
|
|
|
|
|
|
+ #include <assert.h>
|
|
|
|
++
|
|
+/*
|
|
+/*
|
|
+ * C11 static_assert() macro
|
|
+ * C11 static_assert() macro
|
|
+ * assert.h only defines that name for C11 and above
|
|
+ * assert.h only defines that name for C11 and above
|
|
@@ -49,21 +52,21 @@ index d184ad455af..b5c56807acc 100644
|
|
+#endif
|
|
+#endif
|
|
+#endif
|
|
+#endif
|
|
+
|
|
+
|
|
- #include "util/macros.h"
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ #include <limits.h>
|
|
|
|
+ #include <stdarg.h>
|
|
|
|
+ #include <stdbool.h>
|
|
diff --git a/src/util/macros.h b/src/util/macros.h
|
|
diff --git a/src/util/macros.h b/src/util/macros.h
|
|
index 22b18303826..8f73ee72693 100644
|
|
index 22b18303826..8f73ee72693 100644
|
|
--- a/src/util/macros.h
|
|
--- a/src/util/macros.h
|
|
+++ b/src/util/macros.h
|
|
+++ b/src/util/macros.h
|
|
-@@ -27,6 +27,7 @@
|
|
|
|
|
|
+@@ -31,6 +31,7 @@
|
|
#include <stddef.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
+#include "util/compiler.h"
|
|
+#include "util/compiler.h"
|
|
|
|
|
|
- /* Compute the size of an array */
|
|
|
|
- #ifndef ARRAY_SIZE
|
|
|
|
|
|
+ #ifdef _GAMING_XBOX
|
|
|
|
+ #define strdup _strdup
|
|
--
|
|
--
|
|
2.34.1
|
|
2.34.1
|
|
|
|
|