Skip to content

chore: cleanup includes of Win32 headers - #52713

Merged
MarshallOfSound merged 2 commits into
mainfrom
chore/cleanup-windows-api-includes
Aug 16, 2026
Merged

MarshallOfSound merged 2 commits into
mainfrom
chore/cleanup-windows-api-includes

Conversation

@dsanders11

@dsanders11 dsanders11 commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Cleans up includes so we don't need // NOLINT(build/include_order) and the hacks around the StrCat macro. The main issue was we shouldn't be including <atlbase.h> directly, but rather base/win/atl.h (same with propvarutil.h), as per the presubmit error in Chromium: "Do not #include shlwapi.h, atlbase.h, propvarutil.h or sphelper.h directly since they pollute code with StrCat macro. Instead, include matching header from base/win. See http://crbug.com/856536"

The introduction of shell/common/uv_includes.h is to counter the leaking of the RB_BLACK and RB_RED macros from libuv (not a part of the public API, just an internal implementation detail), which conflicts with a Windows header.

Checklist

  • I have built and tested this change
  • I have filled out the PR description

Release Notes

Notes: none

@dsanders11 dsanders11 added semver/none target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 8, 2026
@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Aug 8, 2026
@dsanders11
dsanders11 force-pushed the chore/cleanup-windows-api-includes branch from dba79a5 to 3766313 Compare August 11, 2026 03:43
@dsanders11
dsanders11 marked this pull request as ready for review August 11, 2026 06:01
@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Aug 11, 2026
@MarshallOfSound

Copy link
Copy Markdown
Member

Heads up: Windows CI builds moved to new runners on Monday and the old ones have now been removed. This branch predates that, so its Windows build jobs still point at the old runners and will sit queued forever if CI runs again. Rebasing on main (or "Update branch") picks up the change, nothing else needed.

@dsanders11
dsanders11 force-pushed the chore/cleanup-windows-api-includes branch from 3766313 to 6dc0ee5 Compare August 13, 2026 16:34
@MarshallOfSound
MarshallOfSound merged commit 3237b00 into main Aug 16, 2026
75 checks passed
@release-clerk

release-clerk Bot commented Aug 16, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the chore/cleanup-windows-api-includes branch August 16, 2026 21:01
@trop

trop Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "42-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/42-x-y PR should also be added to the "42-x-y" branch. label Aug 16, 2026
@trop

trop Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "44-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/42-x-y and removed target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 16, 2026
@trop

trop Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "43-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/44-x-y needs-manual-bp/43-x-y and removed target/43-x-y PR should also be added to the "43-x-y" branch. labels Aug 16, 2026
@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "44-x-y", please check out #52929

MarshallOfSound pushed a commit that referenced this pull request Aug 18, 2026
chore: cleanup includes of Win32 headers (#52713)

* chore: cleanup includes of Win32 headers

* chore: work around leaky defines in libuv

(cherry picked from commit 3237b00)

Co-authored-by: David Sanders <[email protected]>
@trop trop Bot added merged/44-x-y PR was merged to the "44-x-y" branch. and removed in-flight/44-x-y labels Aug 18, 2026
@trop

trop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "43-x-y", please check out #52945

codebytere pushed a commit that referenced this pull request Aug 18, 2026
chore: cleanup includes of Win32 headers (#52713)

* chore: cleanup includes of Win32 headers

* chore: work around leaky defines in libuv

(cherry picked from commit 3237b00)

Co-authored-by: David Sanders <[email protected]>
@trop trop Bot added merged/43-x-y PR was merged to the "43-x-y" branch. and removed in-flight/43-x-y labels Aug 18, 2026
@trop

trop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "42-x-y", please check out #52991

MarshallOfSound pushed a commit that referenced this pull request Aug 19, 2026
chore: cleanup includes of Win32 headers (#52713)

* chore: cleanup includes of Win32 headers

* chore: work around leaky defines in libuv

(cherry picked from commit 3237b00)

Co-authored-by: David Sanders <[email protected]>
@trop trop Bot added merged/42-x-y PR was merged to the "42-x-y" branch. and removed in-flight/42-x-y labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants