00001 #ifdef __APPLE__ 00002 00003 #include <cstdlib> 00004 #include "converse.h" 00005 00006 // clang on darwin requires explicit overriding of new and delete functions. 00007 00008 void* operator new(std::size_t bytes) 00009 { 00010 return malloc(bytes); 00011 } 00012 00013 void operator delete(void* ptr) throw() 00014 { 00015 free(ptr); 00016 } 00017 00018 #endif