26 Apr
2023
26 Apr
'23
3:27 p.m.
Matteo Bruni (@Mystral) commented about dlls/d3dcompiler_43/tests/asm.c:
START_TEST(asm) { +#define XSTR(a) STR(a) +#define STR(a) #a + HMODULE d3dcompiler = GetModuleHandleA("d3dcompiler_" XSTR(D3D_COMPILER_VERSION)); + pD3DAssemble = (void *)GetProcAddress(d3dcompiler, "D3DAssemble"); +#undef STR +#undef XSTR +
I overlooked this the first time around. Why the double #define? Does MSVC not like it otherwise? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2705#note_31247