sync: use #insert for atomic.h, so that bootstrapping can be simplified

Delyan Angelov 2022-04-19 20:06:20 +03:00 committed by Jef Roosens
parent b03aa06152
commit f3ce968124
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,12 @@ $if linux {
} }
} }
#include <atomic.h> $if windows {
#insert "@VEXEROOT/thirdparty/stdatomic/win/atomic.h"
} $else {
#insert "@VEXEROOT/thirdparty/stdatomic/nix/atomic.h"
}
// The following functions are actually generic in C // The following functions are actually generic in C
fn C.atomic_load_ptr(voidptr) voidptr fn C.atomic_load_ptr(voidptr) voidptr
fn C.atomic_store_ptr(voidptr, voidptr) fn C.atomic_store_ptr(voidptr, voidptr)