util/os_memory: use detect_os.h to uncouple it from gallium
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 1 Aug 2019 15:55:39 +0000 (16:55 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 2 Aug 2019 17:38:52 +0000 (18:38 +0100)
While at it, remove p_compiler.h as well as it is unused.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/os_memory.h
src/util/os_memory_aligned.h
src/util/os_memory_debug.h
src/util/os_memory_stdc.h

index 7a40ba9e6089b5b9b5695162498bf4a71e81d750..7a67e440deed5e94bc5f1357f5f592d5ff0f3b6c 100644 (file)
 #ifndef _OS_MEMORY_H_
 #define _OS_MEMORY_H_
 
-
-#include "pipe/p_config.h"
-#include "pipe/p_compiler.h"
-
+#include "detect_os.h"
 
 #if defined(EMBEDDED_DEVICE)
 
@@ -67,7 +64,7 @@ os_free_aligned(void *ptr);
 }
 #endif
 
-#elif defined(PIPE_OS_WINDOWS) && defined(DEBUG) && !defined(DEBUG_MEMORY_IMPLEMENTATION)
+#elif DETECT_OS_WINDOWS && defined(DEBUG) && !defined(DEBUG_MEMORY_IMPLEMENTATION)
 
 #  include "os_memory_debug.h"
 
index df398a32bfdbd3af9124b73a54dff7efc64ade40..33eacb99c7f60477128dfc2c3f12f37da7cc87f5 100644 (file)
@@ -36,9 +36,6 @@
 #endif
 
 
-#include "pipe/p_compiler.h"
-
-
 
 /**
  * Add two size_t values with integer overflow check.
index 9a487dec05c8e181f2d826f5527f66b259bb98da..8f3e936cbbf5b53f990c12d547302ec7968425c7 100644 (file)
@@ -36,9 +36,6 @@
 #endif
 
 
-#include "pipe/p_compiler.h"
-
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index c9fde06d8ac2dea35aa68514d4e4d65a5c34cbac..a4a670d589accca2c4d6be2e329d7df28cd2ca2a 100644 (file)
@@ -37,8 +37,6 @@
 
 #include <stdlib.h>
 
-#include "pipe/p_compiler.h"
-
 
 #define os_malloc(_size)  malloc(_size)
 #define os_calloc(_count, _size )  calloc(_count, _size )
@@ -62,7 +60,7 @@ os_malloc_aligned(size_t size, size_t alignment)
 
 #define os_free_aligned(_ptr) free(_ptr)
 
-#elif defined(PIPE_OS_WINDOWS)
+#elif DETECT_OS_WINDOWS
 
 #include <malloc.h>