tests: Include <stddef.h> from "d3d12_crosstest.h". (Clang).

Neither MinGW's nor Microsoft's <windows.h> includes <stddef.h>, either
directly or indirectly. Also, unlike GCC, Clang's <inttypes.h> does not
include <stddef.h>, either. "vkd3d_windows.h" does include <stddef.h>,
and this is why building for the host works, even with Clang.

Fixes cross compilation errors with Clang related to using offsetof(3).

Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chip Davis 2021-08-04 14:18:38 -05:00 committed by Alexandre Julliard
parent 6d687521d0
commit 25d79204e3

View File

@ -52,6 +52,7 @@ typedef int HRESULT;
#include <inttypes.h>
#include <limits.h>
#include <math.h>
#include <stddef.h>
#include <time.h>
#ifdef _WIN32