mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
changes for use of _WIN32 define on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39492 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8904edf3fe
commit
62d2bcbabc
46 changed files with 303 additions and 251 deletions
|
@ -79,7 +79,7 @@
|
|||
#if defined(HAVE_MMAP)
|
||||
munmap(buffer, size);
|
||||
#else
|
||||
#if !defined(__MINGW__) && defined(HAVE_MPROTECT)
|
||||
#if !defined(_WIN32) && defined(HAVE_MPROTECT)
|
||||
if (mprotect(buffer, NSPageSize(), PROT_READ|PROT_WRITE) == -1)
|
||||
{
|
||||
NSLog(@"Failed to protect memory as writable: %@", [NSError _last]);
|
||||
|
@ -159,7 +159,7 @@
|
|||
- (void) protect
|
||||
{
|
||||
#if !defined(HAVE_FFI_PREP_CLOSURE_LOC)
|
||||
#if defined(__MINGW__)
|
||||
#if defined(_WIN32)
|
||||
DWORD old;
|
||||
if (VirtualProtect(buffer, size, PAGE_EXECUTE, &old) == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue