mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
The emscripten compat headers work by transparently augmenting imports and including the original headers via `#include_next`. The search path for emscripten places `system/include/compat` before `system/include`, and so importing with `compat/ctype.h` causes the preprocessor to skip over `system/include/compat` and land the search cursor on `system/include`, which then causes the subsequent `#include_next <ctype.h>` lookup to fail while processing the compat header. Fixes emscripten-core/emscripten#13109 and bkaradzic/bgfx#2336.