-- v2: tests: Include vkd3d_d3d12.h in utils.h. include: Include stddef.h in vkd3d_shader.h.
From: Giovanni Mascellani gmascellani@codeweavers.com
Type size_t is used in the file without importing any header which defines it. This only works when the translation unit includes one of the appropriate headers anyway or when the appropriate header is included internally by other standard C headers; none of those strategies should be relied upon. --- include/vkd3d_shader.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/vkd3d_shader.h b/include/vkd3d_shader.h index 0ce2ef67b..9ac5806c8 100644 --- a/include/vkd3d_shader.h +++ b/include/vkd3d_shader.h @@ -21,6 +21,7 @@
#include <stdbool.h> #include <stdint.h> +#include <stddef.h> #include <vkd3d_types.h>
#ifdef __cplusplus
From: Giovanni Mascellani gmascellani@codeweavers.com
RECT and D3D12_BOX are used from there. --- tests/utils.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/tests/utils.h b/tests/utils.h index 03c9b5789..f9d3d9b19 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -24,6 +24,7 @@ #include <stdint.h> #include <stdlib.h> #include "vkd3d_test.h" +#include "vkd3d_d3d12.h"
struct vec2 {
This merge request was approved by Giovanni Mascellani.
This merge request was approved by Henri Verbeet.