mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Fix broken OS X build with isnan and MAP_ANONYMOUS
This commit is contained in:
parent
634a1f3162
commit
a4f73bc705
2 changed files with 13 additions and 2 deletions
|
@ -8,6 +8,15 @@
|
|||
#include "Emu/SysCalls/Callback.h"
|
||||
#include <vector>
|
||||
|
||||
/* OS X uses MAP_ANON instead of MAP_ANONYMOUS */
|
||||
#ifndef MAP_ANONYMOUS
|
||||
#ifdef MAP_ANON
|
||||
#define MAP_ANONYMOUS MAP_ANON
|
||||
#else
|
||||
#define MAP_ANONYMOUS 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using std::nullptr_t;
|
||||
|
||||
#define safe_delete(x) do {delete (x);(x)=nullptr;} while(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue