From 9071404c63779e99c3b6d287a79e07d8f417ef1e Mon Sep 17 00:00:00 2001 From: dwarning Date: Sun, 1 Feb 2009 18:09:15 +0000 Subject: [PATCH] exclude heap usage for windows compile under __MINGW__ --- src/frontend/outitf.c | 2 +- src/misc/alloc.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 6b5aee8eb..8defeaa0c 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -68,7 +68,7 @@ static void freeRun(runDesc *run); to prevent massive memory fragmentation of standard process heap. This is especially required by TCL for Windows, but may help also under standard Windows GUI. */ -#if (defined(HAS_TCLWIN)) && (defined(_MSC_VER) || defined(__MINGW32__)) +#if (defined(HAS_TCLWIN)) && ((defined(_MSC_VER) || defined(__MINGW32__))) #define newrealloc hrealloc #else #define newrealloc trealloc diff --git a/src/misc/alloc.c b/src/misc/alloc.c index 0ea600517..9d482810a 100644 --- a/src/misc/alloc.c +++ b/src/misc/alloc.c @@ -143,7 +143,6 @@ trealloc(void *ptr, size_t num) Function is used in outitf.c to prevent heap fragmentation An additional heap outheap is used to store the plot output data. */ -//#if defined(HAS_WINDOWS) || defined(HAS_TCLWIN) #if defined(HAS_TCLWIN) #if defined(_MSC_VER) || defined(__MINGW32__) void *