ifdef enclosure of doug lea malloc

This commit is contained in:
Enno Rehling 2005-06-12 10:56:18 +00:00
parent 70413bb43c
commit 71dee49bbb
5 changed files with 32 additions and 24 deletions

View File

@ -5,6 +5,11 @@ CC = gcc ;
LINKFLAGS += -rdynamic ;
if $(MSPACES) {
CCFLAGS += -DMSPACES ;
C++FLAGS += -DMSPACES ;
}
if ! $(HAVE_LUA) {
HAVE_LUA = 1 ;
}

View File

@ -40,7 +40,7 @@
#include <attributes/moved.h>
/* util includes */
#include <base36.h>
#include <util/base36.h>
#include <event.h>
#include <goodies.h>
#include <resolve.h>
@ -56,7 +56,6 @@
#define FIND_FOREIGN_TEMP
int demonfix = 0;
/* ------------------------------------------------------------- */
const unit *
u_peasants(void)

View File

@ -9,7 +9,7 @@ SEARCH_SOURCE +=
[ FDirName $(SUBDIR) dl ] ;
SOURCES =
#<dl>malloc.c
<dl>malloc.c
attrib.c
base36.c
command.c

View File

@ -87,7 +87,9 @@
#include <util/log.h>
#include <util/rand.h>
#include <util/sql.h>
#ifdef MSPACES
# include <util/dl/malloc.h>
#endif
/* lua includes */
#include "lua/bindings.h"
@ -701,7 +703,9 @@ main(int argc, char *argv[])
}
#endif
}
#ifdef MSPACES
malloc_stats();
#endif
#ifdef CLEANUP_CODE
game_done();
#endif