Repository navigation
Commit e3e2fc4
Include emscripten/fiber.h at global scope before minicoro.h (#1256)
minicoro.h includes <emscripten/fiber.h> from inside its own
extern "C" block when building for Emscripten. That pulls Emscripten's
C++ headers (e.g. em_asm.h with its template specializations) in with C
linkage, and the build fails with "explicit specialization of undeclared
template struct '__em_asm_sig'".
Include <emscripten/fiber.h> in action_node.cpp, the only translation
unit that includes minicoro.h, before minicoro.h. The include guard then
prevents the second inclusion under extern "C". The vendored minicoro.h
is left untouched.
Fixes #1226
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3f61069 commit e3e2fc4
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments