Commit 22cdd3a
Fix Windows build: undef TWOPI/HALFPI in GuiHandler.cpp
Reverts the NOGDI approach (broke vfw.h for AVI capture) in favor of
a targeted fix: undef the wingdi.h TWOPI/HALFPI macros directly in
GuiHandler.cpp after the SDL includes. This is the only file where
SDL's transitive windows.h include causes math::TWOPI to be
macro-expanded.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 41b9a0d commit 22cdd3a
3 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | 434 | | |
443 | 435 | | |
444 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments