follow up to bug winmo_xmalloc, removing circular dependency r=dougt

This commit is contained in:
Brad Lassey 2010-03-10 00:43:26 -05:00
parent 29d6c1315b
commit 369622eebe
3 changed files with 13 additions and 6 deletions

View File

@ -56,9 +56,16 @@ endif
ifdef WINCE
# We need jemalloc built before the shunt
ifdef MOZ_MEMORY
DIRS += wince/tools $(DEPTH)/memory/jemalloc $(DEPTH)/memory/mozalloc wince/shunt
DIRS += wince/tools \
$(DEPTH)/memory/jemalloc \
wince/shunt \
$(DEPTH)/memory/mozalloc \
$(NULL)
else
DIRS += wince/tools $(DEPTH)/memory/mozalloc wince/shunt
DIRS += wince/tools \
wince/shunt \
$(DEPTH)/memory/mozalloc \
$(NULL)
endif
endif

View File

@ -83,7 +83,7 @@ endif
DEFFILE = mozce_shunt.def
OS_LIBS += $(call EXPAND_LIBNAME, libcmt)
OS_LIBS = $(call EXPAND_LIBNAME, libcmt)
CPPSRCS = \
shunt.cpp \
@ -92,7 +92,7 @@ CPPSRCS = \
memory.cpp \
$(NULL)
DEFINES += -DMOZCE_SHUNT_EXPORTS
DEFINES += -DMOZCE_SHUNT_EXPORTS -DIN_SHUNT
include $(topsrcdir)/config/rules.mk

View File

@ -99,7 +99,7 @@ inline void *operator new[](size_t, void *p) {
return p;
}
#ifndef IN_SHUNT
// for Gecko, include infallible mozalloc allocators. elsewhere, define
// operator new() normally.
// NB: this include guard needs to be kept in sync with the one in nscore.h
@ -121,7 +121,7 @@ inline void operator delete[](void* ptr) throw() {
}
#endif // if defined(_MOZILLA_CONFIG_H_)
#endif
extern "C" {
#endif