make new extern functions compile on windows

This commit is contained in:
Folkert 2022-11-10 23:14:41 +01:00
parent 9840cd53df
commit b6b7d186e4
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 57 additions and 0 deletions

View file

@ -30,6 +30,11 @@ extern fn getppid() c_int;
fn testing_roc_getppid() callconv(.C) c_int {
return getppid();
}
fn roc_getppid_windows_stub() callconv(.C) c_int {
return 0;
}
fn testing_roc_send_signal(pid: c_int, sig: c_int) callconv(.C) c_int {
return kill(pid, sig);
}