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
|
|
@ -4,7 +4,7 @@
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
int32_t SInterlockedDecrement(int32_t* ptr) {
|
||||
ATOMIC32 SInterlockedDecrement(ATOMIC32* ptr) {
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
return InterlockedDecrement(ptr);
|
||||
#endif
|
||||
|
|
@ -14,7 +14,7 @@ int32_t SInterlockedDecrement(int32_t* ptr) {
|
|||
#endif
|
||||
}
|
||||
|
||||
int32_t SInterlockedIncrement(int32_t* ptr) {
|
||||
ATOMIC32 SInterlockedIncrement(ATOMIC32* ptr) {
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
return InterlockedIncrement(ptr);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue