mirror of https://github.com/PCSX2/pcsx2.git
common: don't use NULL in SafeSysMunmap
BSD maps NULL to nullptr_t which is a problem because it's not a ptr type
This commit is contained in:
parent
e04c890018
commit
4df3bee178
|
@ -211,7 +211,7 @@ namespace HostSys
|
|||
|
||||
// Safe version of Munmap -- NULLs the pointer variable immediately after free'ing it.
|
||||
#define SafeSysMunmap(ptr, size) \
|
||||
((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = NULL))
|
||||
((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = 0))
|
||||
|
||||
extern void InitCPUTicks();
|
||||
extern u64 GetTickFrequency();
|
||||
|
|
Loading…
Reference in New Issue