fix the compilation on Windows and Mac

This commit is contained in:
Krasimir Angelov
2022-02-09 10:39:36 +01:00
parent 8960e00e26
commit 546dc01b5d

View File

@@ -1774,7 +1774,7 @@ void PgfDB::resize_map(size_t new_size)
if (new_ms == MAP_FAILED)
throw pgf_systemerror(errno);
} else {
new_ms = (malloc_state*) realloc(ms, new_size);
new_ms = (malloc_state*) ::realloc(ms, new_size);
if (new_ms == NULL)
throw pgf_systemerror(ENOMEM);
}
@@ -1810,7 +1810,7 @@ void PgfDB::resize_map(size_t new_size)
if (new_ms == NULL)
throw pgf_systemerror(last_error_to_errno());
} else {
new_ms = (malloc_state*) realloc(ms, new_size);
new_ms = (malloc_state*) ::realloc(ms, new_size);
if (new_ms == NULL)
throw pgf_systemerror(ENOMEM);
}