mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(atomic): use typedef aliases for better cross platform compat
This commit is contained in:
parent
653fa81853
commit
2200aab4c2
3 changed files with 14 additions and 6 deletions
|
|
@ -3,8 +3,16 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t SInterlockedDecrement(int32_t* ptr);
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
typedef long ATOMIC32;
|
||||
#endif
|
||||
|
||||
int32_t SInterlockedIncrement(int32_t* ptr);
|
||||
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
|
||||
typedef int32_t ATOMIC32;
|
||||
#endif
|
||||
|
||||
ATOMIC32 SInterlockedDecrement(ATOMIC32* ptr);
|
||||
|
||||
ATOMIC32 SInterlockedIncrement(ATOMIC32* ptr);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue