What version of Bun is running?
1.3.3+274e01c73
What platform is your computer?
Microsoft Windows NT 10.0.22000.0 x64
What steps can reproduce the bug?
rand.c:
#include <stdlib.h>
int crand() { return rand(); }
test.js:
import { cc } from "bun:ffi";
const cExports = cc({
source: "./rand.c",
symbols: {
crand: {
returns: "int",
args: [],
},
},
})
Command:
What is the expected behavior?
Compile successfully.
What do you see instead?
Output:
./rand.c:1: error: include file 'stdlib.h' not found
Additional information
Related with #14014.
What version of Bun is running?
1.3.3+274e01c73
What platform is your computer?
Microsoft Windows NT 10.0.22000.0 x64
What steps can reproduce the bug?
rand.c:test.js:Command:
What is the expected behavior?
Compile successfully.
What do you see instead?
Output:
./rand.c:1: error: include file 'stdlib.h' not foundAdditional information
Related with #14014.