Fixed windows compilation problems

This commit is contained in:
monty@mysql.com/narttu.mysql.fi 2007-02-24 04:22:34 +02:00
parent 520d1b4144
commit 3d34c6f957
2 changed files with 4 additions and 0 deletions

View file

@ -27,6 +27,8 @@
namespace mySTL {
#undef max
#undef min
template<typename T>
inline const T& max(const T& a, const T&b)

View file

@ -38,6 +38,8 @@ public:
static void operator delete(void *ptr, size_t size) { TRASH(ptr, size); }
static void operator delete(void *ptr, MEM_ROOT *mem_root)
{ /* never called */ }
static void operator delete[](void *ptr, MEM_ROOT *mem_root)
{ /* never called */ }
static void operator delete[](void *ptr, size_t size) { TRASH(ptr, size); }
#ifdef HAVE_purify
bool dummy;