util: Merge p_compiler.h into src/util/compiler.h
authorYonggang Luo <luoyonggang@gmail.com>
Sun, 11 Jun 2023 17:07:29 +0000 (01:07 +0800)
committerYonggang Luo <luoyonggang@gmail.com>
Tue, 27 Jun 2023 10:18:30 +0000 (18:18 +0800)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>

src/gallium/include/pipe/p_compiler.h
src/util/compiler.h

index 3a0d8fe..41a1d26 100644 (file)
 
 
 #include "util/compiler.h"
-#include "util/detect.h"
-#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>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#if !defined(__HAIKU__) && !defined(__USE_MISC)
-#if !DETECT_OS_ANDROID
-typedef unsigned int       uint;
-#endif
-typedef unsigned short     ushort;
-#endif
-typedef unsigned char      ubyte;
-
-typedef unsigned char boolean;
-#ifndef TRUE
-#define TRUE  true
-#endif
-#ifndef FALSE
-#define FALSE false
-#endif
-
-#if defined(__cplusplus)
-}
-#endif
-
 
 #endif /* P_COMPILER_H */
index ebb0ac8..ddd4cfb 100644 (file)
 
 
 #include <assert.h>
+#include <limits.h>
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
 
+#include "util/detect.h"
 #include "util/macros.h"
-#include "util/u_endian.h"
-#include "util/detect_arch.h"
 
 /**
  * Define CPU_TO_LE32
 #define FALLTHROUGH do { } while(0)
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if !defined(__HAIKU__) && !defined(__USE_MISC)
+#if !DETECT_OS_ANDROID
+typedef unsigned int       uint;
+#endif
+#endif
+
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* COMPILER_H */