Commit 19db166
committed
Fix Windows compile errors in plug-and-play: missing windows.h, coroutine guard, -fcoroutines
- Processing.h: explicitly include <windows.h> and <shellapi.h> on Windows
before any Win32 API usage. Previously relied on <GL/glew.h> pulling it
in transitively, which broke when compiling Processing.cpp directly via
run.bat (WIN32_FIND_DATAA, HANDLE, MessageBoxA, AllocConsole etc. all
undeclared).
- Processing.h: guard <coroutine> with __cpp_impl_coroutine feature-test
macro -- GCC 16 made -fcoroutines mandatory and errors without it.
- generate_plugandplay.py: add -fcoroutines to all Windows g++ invocations
in run.bat template so coroutines work when user sketches need them.
- Regenerated processing-cpp-plugandplay.zip1 parent 0ec0db4 commit 19db166
3 files changed
Lines changed: 22 additions & 4 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
13 | 27 | | |
14 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
15 | 32 | | |
| 33 | + | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
| |||
0 commit comments