mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
fix the compilation on Windows and Mac
This commit is contained in:
@@ -1774,7 +1774,7 @@ void PgfDB::resize_map(size_t new_size)
|
|||||||
if (new_ms == MAP_FAILED)
|
if (new_ms == MAP_FAILED)
|
||||||
throw pgf_systemerror(errno);
|
throw pgf_systemerror(errno);
|
||||||
} else {
|
} else {
|
||||||
new_ms = (malloc_state*) realloc(ms, new_size);
|
new_ms = (malloc_state*) ::realloc(ms, new_size);
|
||||||
if (new_ms == NULL)
|
if (new_ms == NULL)
|
||||||
throw pgf_systemerror(ENOMEM);
|
throw pgf_systemerror(ENOMEM);
|
||||||
}
|
}
|
||||||
@@ -1810,7 +1810,7 @@ void PgfDB::resize_map(size_t new_size)
|
|||||||
if (new_ms == NULL)
|
if (new_ms == NULL)
|
||||||
throw pgf_systemerror(last_error_to_errno());
|
throw pgf_systemerror(last_error_to_errno());
|
||||||
} else {
|
} else {
|
||||||
new_ms = (malloc_state*) realloc(ms, new_size);
|
new_ms = (malloc_state*) ::realloc(ms, new_size);
|
||||||
if (new_ms == NULL)
|
if (new_ms == NULL)
|
||||||
throw pgf_systemerror(ENOMEM);
|
throw pgf_systemerror(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user