Skip to content

fix(windows): include objbase.h for webview COM protos - #222

Merged
tiensonqin merged 2 commits into
feat/ml-backendfrom
fix/win-webview-objbase
Oct 12, 2026
Merged

tiensonqin merged 2 commits into
feat/ml-backendfrom
fix/win-webview-objbase

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

When SDL_syswm.h pulls in <windows.h> (WIN32_LEAN_AND_MEAN), WINAPI is defined so our fallback protos are skipped, but the COM headers are excluded too: CoTaskMemFree/CreateStreamOnHGlobal/GetHGlobalFromStream become implicit declarations, which mingw GCC 14 treats as errors (seen on #216/#217 windows jobs). Include <objbase.h> in that branch.

@tiensonqin
tiensonqin merged commit d7e283a into feat/ml-backend Oct 12, 2026
8 checks passed
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.

1 participant