Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

patch for firebird-cs version 2.1.3 - should be saved as Firebird-2.1.3.18185-0-1.patch

By: a guest on Oct 24th, 2010  |  syntax: C  |  size: 0.61 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- src/common/classes/alloc.h.old      2009-07-09 13:04:14.000000000 +0200
  2. +++ src/common/classes/alloc.h  2009-07-09 13:05:37.000000000 +0200
  3. @@ -48,6 +48,8 @@
  4.                                            stdlib.h (EKU) */
  5.  #endif
  6.  
  7. +#include <new>
  8. +
  9.  #ifdef _MSC_VER
  10.  #define THROW_BAD_ALLOC
  11.  #else
  12. @@ -448,15 +450,6 @@
  13.         );
  14.  }
  15.  
  16. -inline void* operator new(size_t, void* ptr) throw()
  17. -{
  18. -       return ptr;
  19. -}
  20. -inline void* operator new[](size_t, void* ptr) throw()
  21. -{
  22. -       return ptr;
  23. -}
  24. -
  25.  inline void operator delete(void* mem) throw()
  26.  {
  27.         Firebird::MemoryPool::globalFree(mem);