Mesa (main): gallium: reorganize includes

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 15:50:07 UTC 2022


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jun  8 10:31:32 2022 +0200

gallium: reorganize includes

There's no reason to have standard includes in two different sections of
the header, let's merge them. While we're at it, let's sort the includes
as well.

Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>

---

 src/gallium/include/pipe/p_compiler.h | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index eefc2aee7f0..dfcfa196cfb 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -33,11 +33,13 @@
 
 #include "util/macros.h"
 
+#include <limits.h>
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stddef.h>
-#include <stdarg.h>
-#include <limits.h>
 
 
 #if defined(_WIN32) && !defined(__WIN32__)
@@ -54,10 +56,6 @@
 #endif /* _MSC_VER */
 
 
-#include <stdint.h>
-#include <stdbool.h>
-
-
 #ifdef __cplusplus
 extern "C" {
 #endif



More information about the mesa-commit mailing list