the ios 8.1 sdk has mach_vm_trunc_page and mach_vm_round_page already defined

This commit is contained in:
Thomas Pöchtrager 2014-12-28 17:48:28 +01:00
parent edf238ea34
commit d852c3b46d

View File

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