Landing: bf69bded7b47
Project / Subsystem
gcc / libffi
Date
2026-05-21
Author
Pietro Monteiro
Commit
bf69bded7b47b591bdad0cd0ef6ac4c06b6d2b89
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- libffi
- patch_id
- —
- commit_hash
- bf69bded7b47b591bdad0cd0ef6ac4c06b6d2b89
- source_type
- github
- headline
- Libffi: Always define `WIN32_LEAN_AND_MEAN` before <windows.h>
- tldr
- `WIN32_LEAN_AND_MEAN` is now always defined before including `<windows.h>` in libffi to reduce header pollution.
- author
- Pietro Monteiro
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libffi
- • windows
- • build
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-21T00:00:00.000Z
The WIN32_LEAN_AND_MEAN macro is defined before including <windows.h> in libffi’s source code. Defining this macro reduces the amount of code included from the Windows headers, which speeds up compilation and avoids potential conflicts. The change has been forwarded upstream to the libffi project.