Add include stdio.h to GCTests.cpp
authorjorendorff@mozilla.com
Wed, 28 Nov 2007 14:47:29 -0600
changeset 12 af07ce9c5d6110146c21f1fa02909c89a644885b
parent 11 553e043f72afe2b76d49737b9c0b960bc0fb2e0e
child 13 6a29ec7e67a19d85a0800edaa50ce47243b56e53
child 14 d0f7c6e7ba23ae43885dcb69befe8a44854f8ab2
push id1
push userbsmedberg@mozilla.com
push dateMon, 21 Apr 2008 01:54:18 +0000
Add include stdio.h to GCTests.cpp
mmgc-threadsafe-take2
--- a/mmgc-threadsafe-take2
+++ b/mmgc-threadsafe-take2
@@ -1932,17 +1932,28 @@ diff --git a/MMgc/GCLargeAlloc.cpp b/MMg
 +		GCAssert(m_gc->m_lock.IsHeld());
 +#endif
  		int blocks = (size+sizeof(LargeBlock)+GCHeap::kBlockSize-1) / GCHeap::kBlockSize;
  		
  		LargeBlock *block = (LargeBlock*) m_gc->AllocBlock(blocks, GC::kGCLargeAllocPageFirst, (flags&GC::kZero) != 0);
 diff --git a/MMgc/GCTests.cpp b/MMgc/GCTests.cpp
 --- a/MMgc/GCTests.cpp
 +++ b/MMgc/GCTests.cpp
-@@ -53,8 +53,23 @@ namespace MMgc
+@@ -37,7 +37,9 @@
+ 
+  
+ #include "MMgc.h"
+- 
++
++#include <stdio.h>
++
+ #ifdef _MSC_VER
+ // "behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized"
+ #pragma warning(disable:4345) // b/c GCObject doesn't have a ctor
+@@ -53,8 +55,23 @@ namespace MMgc
  {
  	GC *gc;
  
 -	GCWeakRef* createWeakRef(int extra=0)
 +	GCWeakRef* createWeakRef(int extra = 0)
  	{
 +		// Bogusly use up some extra stack.
 +		//
@@ -2334,16 +2345,16 @@ diff --git a/MMgc/manifest.mk b/MMgc/man
    $(curdir)/GCTests.cpp \
 +  $(curdir)/GCThreads.cpp \
    $(NULL)
  
  ifeq (windows,$(TARGET_OS))
 diff --git a/configure.py b/configure.py
 --- a/configure.py
 +++ b/configure.py
-@@ -90,6 +90,7 @@ MMGC_THREADSAFE = o.getBoolArg('threadsa
+@@ -95,6 +95,7 @@ MMGC_THREADSAFE = o.getBoolArg('threadsa
  MMGC_THREADSAFE = o.getBoolArg('threadsafe-mmgc', False)
  if MMGC_THREADSAFE:
      MMGC_DEFINES['MMGC_THREADSAFE'] = None
 +    MMGC_DEFINES['MMGC_INTERIOR_PTRS'] = None
      NSPR_INCLUDES = o.getStringArg('nspr-includes')
      MMGC_CPPFLAGS += NSPR_INCLUDES + " "
      APP_CPPFLAGS += NSPR_INCLUDES + " "