1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sync: enable Android support (#9790)

This commit is contained in:
Larpon
2021-04-18 15:31:05 +02:00
committed by GitHub
parent 4a1e2f9dcc
commit 8710a0b7b1
2 changed files with 13 additions and 8 deletions

View File

@ -3,11 +3,12 @@ module sync
import time
import rand
#flag windows -I @VROOT/thirdparty/stdatomic/win
#flag linux -I @VROOT/thirdparty/stdatomic/nix
#flag darwin -I @VROOT/thirdparty/stdatomic/nix
#flag freebsd -I @VROOT/thirdparty/stdatomic/nix
#flag solaris -I @VROOT/thirdparty/stdatomic/nix
$if windows {
#flag -I @VROOT/thirdparty/stdatomic/win
} $else {
#flag -I @VROOT/thirdparty/stdatomic/nix
}
$if linux {
$if tinyc {
@ -24,8 +25,7 @@ $if linux {
}
#include <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_store_ptr(voidptr, voidptr)
fn C.atomic_compare_exchange_weak_ptr(voidptr, voidptr, voidptr) bool