From f3ce96812446d72d85143ebf1171c7fe8952f88b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 19 Apr 2022 20:06:20 +0300 Subject: [PATCH] sync: use #insert for atomic.h, so that bootstrapping can be simplified --- vlib/sync/stdatomic/1.declarations.c.v | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vlib/sync/stdatomic/1.declarations.c.v b/vlib/sync/stdatomic/1.declarations.c.v index f0515266e2..d84b3f67a5 100644 --- a/vlib/sync/stdatomic/1.declarations.c.v +++ b/vlib/sync/stdatomic/1.declarations.c.v @@ -48,7 +48,12 @@ $if linux { } } -#include +$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 fn C.atomic_load_ptr(voidptr) voidptr fn C.atomic_store_ptr(voidptr, voidptr)