Minor fixes to enable tcc
This commit is contained in:
parent
af593c2ef3
commit
6ca8478548
3 changed files with 4 additions and 4 deletions
|
|
@ -241,7 +241,7 @@ when defined(vcc):
|
|||
else:
|
||||
{.error: "invalid CAS instruction".}
|
||||
|
||||
elif defined(tcc) and not defined(windows):
|
||||
elif defined(tcc):
|
||||
when defined(amd64):
|
||||
{.emit:"""
|
||||
static int __tcc_cas(int *ptr, int oldVal, int newVal)
|
||||
|
|
@ -262,7 +262,7 @@ static int __tcc_cas(int *ptr, int oldVal, int newVal)
|
|||
}
|
||||
""".}
|
||||
else:
|
||||
assert sizeof(int) == 4
|
||||
#assert sizeof(int) == 4
|
||||
{.emit:"""
|
||||
static int __tcc_cas(int *ptr, int oldVal, int newVal)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue