chore(atomic): use typedef aliases for better cross platform compat

This commit is contained in:
fallenoak 2020-12-04 00:19:19 -06:00
parent 653fa81853
commit 2200aab4c2
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 14 additions and 6 deletions

View file

@ -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