summaryrefslogtreecommitdiff
path: root/src/util/macros.h
diff options
context:
space:
mode:
authorMatt Coster <matt.coster@imgtec.com>2022-09-01 12:24:50 +0100
committerMarge Bot <emma+marge@anholt.net>2022-09-03 17:09:37 +0000
commitc0b891ecca2b92c9ef2945440c77f45345df3290 (patch)
treea2e22da96d37ba3257ec0a915a9b0e92d63c4389 /src/util/macros.h
parent714ac455e2469e28fb752d087c1386e69c674169 (diff)
util: Include stddef.h in util/macros.h
This is required for offsetof, used by the container_of macro. Signed-off-by: Matt Coster <matt.coster@imgtec.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18368>
Diffstat (limited to 'src/util/macros.h')
-rw-r--r--src/util/macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/macros.h b/src/util/macros.h
index 88a4c519b17..f726483ee20 100644
--- a/src/util/macros.h
+++ b/src/util/macros.h
@@ -24,9 +24,10 @@
#ifndef UTIL_MACROS_H
#define UTIL_MACROS_H
-#include <stdio.h>
#include <assert.h>
+#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
/* Compute the size of an array */
#ifndef ARRAY_SIZE