diff --git a/js/js2/gc_allocator.h b/js/js2/gc_allocator.h index a19f8886d94..3df8f7ab4c0 100644 --- a/js/js2/gc_allocator.h +++ b/js/js2/gc_allocator.h @@ -39,7 +39,7 @@ namespace JavaScript { GC_finalization_proc *old_proc, void* *old_client_data); } - #ifndef XP_MAC + #if 0 && !defined(XP_MAC) // for platforms where GC doesn't exist yet. inline void* GC_malloc(size_t bytes) { return ::operator new(bytes); } inline void* GC_malloc_atomic(size_t bytes) { return ::operator new(bytes); } diff --git a/js2/src/gc_allocator.h b/js2/src/gc_allocator.h index a19f8886d94..3df8f7ab4c0 100644 --- a/js2/src/gc_allocator.h +++ b/js2/src/gc_allocator.h @@ -39,7 +39,7 @@ namespace JavaScript { GC_finalization_proc *old_proc, void* *old_client_data); } - #ifndef XP_MAC + #if 0 && !defined(XP_MAC) // for platforms where GC doesn't exist yet. inline void* GC_malloc(size_t bytes) { return ::operator new(bytes); } inline void* GC_malloc_atomic(size_t bytes) { return ::operator new(bytes); }