Skip to content

Commit

Permalink
fix to mappedbytearray.pmc to make it build on my system
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Dec 1, 2010
1 parent 05ab1f5 commit a1f5f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/mappedbytearray.pmc
Expand Up @@ -115,9 +115,9 @@ Free all resources used.
VTABLE void init_pmc(PMC * init) {
#ifdef ENABLED
PObj_custom_destroy_SET(SELF);
void *mapping = NULL;
if (VTABLE_isa(INTERP, init, CONST_STRING(INTERP, "String"))) {
unsigned long length = 0;
void *mapping = NULL;
STRING *name = VTABLE_get_string(INTERP, init);
# ifdef MAPW32
# else
Expand Down Expand Up @@ -462,8 +462,8 @@ mapfromfilehandle(PIOHANDLE handle, unsigned long size, int flag)
{
ASSERT_ARGS(mapfromfilehandle)

#ifdef ENABLED
void *mapping = (void *)-1;
#ifdef ENABLED
# ifdef MAPW32
HANDLE hmapping;
DWORD prot, access;
Expand Down

0 comments on commit a1f5f63

Please sign in to comment.