[PATCH vkd3d] tests: Include <stddef.h> from "d3d12_crosstest.h".

Henri Verbeet hverbeet at gmail.com
Wed Aug 4 07:47:17 CDT 2021


On Wed, 4 Aug 2021 at 05:01, Chip Davis <cdavis at codeweavers.com> wrote:
> To answer Henri's question: I'm using somewhat ancient Clang 10.0 that was compiled from Git. This is the error I see building crosstests:
>
> tests/d3d12.c:23900:13: warning: implicit declaration of function 'offsetof' is
>       invalid in C99 [-Wimplicit-function-declaration]
>             offsetof(struct argument_data, dispatch), NULL, 0);
>             ^
> tests/d3d12.c:23900:22: error: expected expression
>             offsetof(struct argument_data, dispatch), NULL, 0);
>                      ^
> tests/d3d12.c:23900:44: error: use of undeclared identifier 'dispatch'
>             offsetof(struct argument_data, dispatch), NULL, 0);
>                                            ^
> tests/d3d12.c:23931:22: error: expected expression
>             offsetof(struct argument_data, indexed_draws), NULL, 0);
>                      ^
> tests/d3d12.c:23931:44: error: use of undeclared identifier 'indexed_draws'
>             offsetof(struct argument_data, indexed_draws), NULL, 0);
>                                            ^
> tests/d3d12.c:23960:22: error: expected expression
>             offsetof(struct argument_data, indexed_draws), count_buffer...
>                      ^
> tests/d3d12.c:23960:44: error: use of undeclared identifier 'indexed_draws'
>             offsetof(struct argument_data, indexed_draws), count_buffer...
>                                            ^
> 1 warning and 6 errors generated.
>
Oh, that makes sense. (But "Clang" isn't quite "MinGW"; MinGW/gcc
pulls in stddef.h through inttypes.h here.) Could you resend this with
an updated commit message?



More information about the wine-devel mailing list