diff options
author | Matt Coster <matt.coster@imgtec.com> | 2022-09-01 12:24:50 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-09-03 17:09:37 +0000 |
commit | c0b891ecca2b92c9ef2945440c77f45345df3290 (patch) | |
tree | a2e22da96d37ba3257ec0a915a9b0e92d63c4389 /src/util/macros.h | |
parent | 714ac455e2469e28fb752d087c1386e69c674169 (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.h | 3 |
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 |