Skip to content

define _CRT_USE_BUILTIN_OFFSETOF to avoid usage of reinterpret_cast in offsetof macro on Windows#63

Draft
yeggor wants to merge 1 commit intomasterfrom
fix/crt-use-builtin-offsetof
Draft

define _CRT_USE_BUILTIN_OFFSETOF to avoid usage of reinterpret_cast in offsetof macro on Windows#63
yeggor wants to merge 1 commit intomasterfrom
fix/crt-use-builtin-offsetof

Conversation

@yeggor
Copy link
Copy Markdown
Contributor

@yeggor yeggor commented Feb 22, 2026

See #60. I tested it on the environment in which I had previously reproduced the issue. Build is successful from both x64_x86 Cross Tools Command Prompt and x64 Native Tools Command Prompt.

@xorpse
Copy link
Copy Markdown
Member

xorpse commented Feb 23, 2026

@yeggor shall we take this patch vs the current one? The current one seems to be fine for now, so we can bundle this in v0.8.2, save doing another release just for this problem?

@yeggor
Copy link
Copy Markdown
Contributor Author

yeggor commented Feb 23, 2026

The current one seems to be fine for now, so we can bundle this in v0.8.2, save doing another release just for this problem?

Yeah, I was thinking the same thing. Let's use this patch for the next release. This patch is cleaner, but functionally it's not very different to what we have now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants