From 546dc01b5d2578a3f44981e67fd658cec1dc66be Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 9 Feb 2022 10:39:36 +0100 Subject: [PATCH] fix the compilation on Windows and Mac --- src/runtime/c/pgf/db.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/c/pgf/db.cxx b/src/runtime/c/pgf/db.cxx index 8b97d992d..77db9db9b 100644 --- a/src/runtime/c/pgf/db.cxx +++ b/src/runtime/c/pgf/db.cxx @@ -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); }