mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 19:14:18 +01:00
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:
1 parent
e04c890018
commit
4df3bee178
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user