Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-backports-src > by-pkgid > dfcf4932fb6044f8da9cbe1084aa9af3 > files > 3

firebird-2.1.3.18185.0-0mdv2009.1.src.rpm

# Author: Adriano dos Santos Fernandes
#Index: src/common/classes/alloc.h
#===================================================================
#RCS file: /cvsroot/firebird/firebird2/src/common/classes/alloc.h,v
#retrieving revision 1.71
diff -u -p -r1.71 alloc.h
--- src/common/classes/alloc.h	26 Sep 2007 17:48:20 -0000	1.71
+++ src/common/classes/alloc.h	20 May 2009 02:20:08 -0000
@@ -47,6 +47,7 @@
 #include <stdlib.h> /* XPG: prototypes for malloc/free have to be in
 					   stdlib.h (EKU) */
 #endif
+#include <new>
 
 #ifdef _MSC_VER
 #define THROW_BAD_ALLOC
@@ -448,15 +449,6 @@ inline void* operator new[](size_t s) TH
 	);
 }
 
-inline void* operator new(size_t, void* ptr) throw() 
-{
-	return ptr;
-}
-inline void* operator new[](size_t, void* ptr) throw() 
-{
-	return ptr;
-}
-
 inline void operator delete(void* mem) throw()
 {
 	Firebird::MemoryPool::globalFree(mem);