[PATCH v2 0/2] MR747: vkd3d: Add some missing includes.
-- v2: tests: Include vkd3d_d3d12.h in utils.h. include: Include stddef.h in vkd3d_shader.h. https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/747
From: Giovanni Mascellani <gmascellani(a)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 -- GitLab https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/747
From: Giovanni Mascellani <gmascellani(a)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 { -- GitLab https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/747
This merge request was approved by Giovanni Mascellani. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/747
This merge request was approved by Henri Verbeet. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/747
participants (3)
-
Giovanni Mascellani -
Giovanni Mascellani (@giomasce) -
Henri Verbeet (@hverbeet)