mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 04:09:48 +00:00
the ios 8.1 sdk has mach_vm_trunc_page and mach_vm_round_page already defined
This commit is contained in:
parent
c06514ecd2
commit
8a6167e4e3
@ -119,8 +119,12 @@ extern int vm_page_shift;
|
||||
/*
|
||||
* Page-size rounding macros for the fixed-width VM types.
|
||||
*/
|
||||
#ifndef mach_vm_trunc_page
|
||||
#define mach_vm_trunc_page(x) ((mach_vm_offset_t)(x) & ~((signed)PAGE_MASK))
|
||||
#endif
|
||||
#ifndef mach_vm_round_page
|
||||
#define mach_vm_round_page(x) (((mach_vm_offset_t)(x) + PAGE_MASK) & ~((signed)PAGE_MASK))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* fprintf_stderr uses vprintf_stderr_func to produce
|
||||
|
Loading…
Reference in New Issue
Block a user