summaryrefslogtreecommitdiff
path: root/src/util/u_memory.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-03-25 23:44:59 -0400
committerMarge Bot <eric+marge@anholt.net>2020-03-27 21:00:10 +0000
commit71646745002504302bcef51bdb438abbe66961fc (patch)
tree6f1aaa9b23d2c378be574922feffd5488c44d0a9 /src/util/u_memory.h
parent013b65635f1db45650809d8d802436c1e9d009e3 (diff)
util: don't include p_defines.h and u_pointer.h from gallium
It's a mess, but this is what I arrived at. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
Diffstat (limited to 'src/util/u_memory.h')
-rw-r--r--src/util/u_memory.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/u_memory.h b/src/util/u_memory.h
index dc22ab0fd1a..15a0bb419b5 100644
--- a/src/util/u_memory.h
+++ b/src/util/u_memory.h
@@ -34,7 +34,6 @@
#ifndef U_MEMORY_H
#define U_MEMORY_H
-#include "util/u_pointer.h"
#include "util/u_debug.h"
#include "util/os_memory.h"
@@ -75,7 +74,7 @@ align_calloc(size_t size, unsigned long alignment)
* Duplicate a block of memory.
*/
static inline void *
-mem_dup(const void *src, uint size)
+mem_dup(const void *src, size_t size)
{
void *dup = MALLOC(size);
if (dup)