Skip to content
Commit Detail

Commit 43e68d6

Author
Kenton Varda <kenton@cloudflare.com> 2025-11-03 17:51:11 -0600
Parents
d097ec6
Tree
ebb9df5
Fix #include in the middle of the file.

This isn't supposepd to work. In particular, expanding the include _inside_ a namespace block puts all the symbols into the wrong namespace. However, the fact that this is a C header (wrapped in `extern "C" {`) coincidentally causes the misplaced symbols to end up linking correctly (because it disables complex C++ symbol names, effectively stripping the namespace prefixes). So it ended up working by accident, but we shouldn't rely on that.

Files changed

1 file changed~1 modified