Skip to content

Fix Windows build failure in rotator module#24

Merged
aweeri merged 3 commits intoaweeri:mainfrom
sandrwich:fix/windows-rotator-build
Mar 21, 2026
Merged

Fix Windows build failure in rotator module#24
aweeri merged 3 commits intoaweeri:mainfrom
sandrwich:fix/windows-rotator-build

Conversation

@sandrwich
Copy link
Copy Markdown
Contributor

@sandrwich sandrwich commented Mar 19, 2026

rotator.c build error: includes raylib.h (via rotator.h → ui.h) which defines Rectangle, CloseWindow, and ShowCursor. When it later includes <winsock2.h>, that pulls in <windows.h>wingdi.h/winuser.h which redeclare those symbols with incompatible types. Adds WIN32_LEAN_AND_MEAN/NOGDI/NOUSER + LPMSG forward declaration, same pattern ui.c already uses.

installer icon generation: uses magick (IM7) with convert (IM6) fallback, and generates multi-size icons with auto-resize. Ships a pre-generated logo.ico as final fallback for when ImageMagick is broken on CI (currently affected by a regression in IM 7.1.2-17 on MSYS2).

@sandrwich sandrwich force-pushed the fix/windows-rotator-build branch from 1532661 to d16ab22 Compare March 19, 2026 15:21
@sandrwich sandrwich force-pushed the fix/windows-rotator-build branch from d16ab22 to b4145b5 Compare March 19, 2026 15:28
@sandrwich
Copy link
Copy Markdown
Contributor Author

Something odd happened with ImageMagick in MSYS2 and it now fails the .ico generation. It was using ImageMagick 7.1.2.16 when builds were passing a couple days ago, and right now its on 7.1.2.17 and builds are failing. 💀

@sandrwich sandrwich force-pushed the fix/windows-rotator-build branch from b4145b5 to 5eb7b7c Compare March 19, 2026 16:03
@aweeri aweeri merged commit 3d3ab85 into aweeri:main Mar 21, 2026
4 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.

2 participants