Skip to content

Include <stdlib.h> in test_fetch_*.cpp files#26107

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
aheejin:test_fetch_stdlib
Jan 14, 2026
Merged

Include <stdlib.h> in test_fetch_*.cpp files#26107
sbc100 merged 1 commit intoemscripten-core:mainfrom
aheejin:test_fetch_stdlib

Conversation

@aheejin
Copy link
Member

@aheejin aheejin commented Jan 14, 2026

These files use exit(), which requires #include <stdlib.h>, but didn't have the include. These didn't error out because libcxx/include/math.h used to contain #include <stdlib.h> but not anymore. It was removed in llvm/llvm-project#139586, which is included in LLVM 21.

These files use `exit()`, which requires `#include <stdlib.h>`, but
didn't have the include. These didn't error out because
`libcxx/include/math.h` used to contain `#include <stdlib.h>` but not
anymore. It was removed in llvm/llvm-project#139586, which is included
in LLVM 21.
@sbc100 sbc100 merged commit 1fe2598 into emscripten-core:main Jan 14, 2026
35 checks passed
@aheejin aheejin deleted the test_fetch_stdlib branch January 14, 2026 17:10
inolen pushed a commit to inolen/emscripten that referenced this pull request Feb 13, 2026
These files use `exit()`, which requires `#include <stdlib.h>`, but
didn't have the include. These didn't error out because
`libcxx/include/math.h` used to contain `#include <stdlib.h>` but not
anymore. It was removed in
llvm/llvm-project#139586, which is included in
LLVM 21.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants