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>
This commit is contained in:
Matt Coster 2022-09-01 12:24:50 +01:00 committed by Marge Bot
parent 714ac455e2
commit c0b891ecca

View file

@ -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