mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added Android support, and generalized target triple support
Added PICLevel, RelocKind DarwinCommon/LinuxCommon/AndroidCommon merged into PosixCommon Mangling changed to avoid '@'
This commit is contained in:
parent
7a27ab75bf
commit
3883a3674d
39 changed files with 3457 additions and 5636 deletions
|
@ -230,9 +230,9 @@ void SetErrorString(const char* str)
|
|||
while (true)
|
||||
{
|
||||
const char* prevStr = gErrorString;
|
||||
auto result = ::InterlockedCompareExchangePointer((void* volatile*)&gErrorString, (void*)newStr, (void*)prevStr);
|
||||
auto result = (void*)BfpSystem_InterlockedCompareExchangePtr((uintptr*)&gErrorString, (uintptr)prevStr, (uintptr)newStr);
|
||||
if (result != prevStr)
|
||||
continue;
|
||||
continue;
|
||||
if (prevStr != NULL)
|
||||
free((void*)prevStr);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue