Skip to content

Commit

Permalink
iOS buildfix, fix another comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 28, 2016
1 parent 1e4b77f commit 2a4f4ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/MemoryUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ void ProtectMemoryPages(const void* ptr, size_t size, uint32_t memProtFlags) {
if ((memProtFlags & (MEM_PROT_WRITE | MEM_PROT_EXEC)) == (MEM_PROT_WRITE | MEM_PROT_EXEC))
PanicAlert("Bad memory protect : W^X is in effect, can't both write and exec");
}
// Note - both VirtualProtect and mprotect will affect the full pages containing the requested range,
// so no need to round ptr and size down/up.
// Note - both VirtualProtect will affect the full pages containing the requested range.
// mprotect does not seem to, at least not on Android unless I made a mistake somewhere, so we manually round.
#ifdef _WIN32
uint32_t protect = ConvertProtFlagsWin32(memProtFlags);
DWORD oldValue;
Expand Down
1 change: 1 addition & 0 deletions ios/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#import <string>
#import <stdio.h>
#import <stdlib.h>
#import <sys/syscall.h>
#import <AudioToolbox/AudioToolbox.h>

#import "AppDelegate.h"
Expand Down

0 comments on commit 2a4f4ed

Please sign in to comment.