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>
#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)
}
#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"
#endif
-#include "pipe/p_compiler.h"
-
-
/**
* Add two size_t values with integer overflow check.
#endif
-#include "pipe/p_compiler.h"
-
-
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
-#include "pipe/p_compiler.h"
-
#define os_malloc(_size) malloc(_size)
#define os_calloc(_count, _size ) calloc(_count, _size )
#define os_free_aligned(_ptr) free(_ptr)
-#elif defined(PIPE_OS_WINDOWS)
+#elif DETECT_OS_WINDOWS
#include <malloc.h>