Ignore:
Timestamp:
Mar 16, 2010, 9:19:50 AM (15 years ago)
Author:
[email protected]
Message:

2010-03-16 Zoltan Horvath <[email protected]>

Reviewed by Darin Adler.

Remove extra <new> include and add guards to operator new/delete definitions
https://bugs.webkit.org/show_bug.cgi?id=35967

Remove extra <new> header include from FastAlloc.cpp since it is included in
FastAlloc.h. Add ENABLE(GLOBAL_FASTMALLOC_NEW) macro guard to operator
new/delete/new []/delete [] definitions.

  • wtf/FastMalloc.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r56029 r56066  
    418418#include <errno.h>
    419419#include <limits>
    420 #include <new>
    421420#include <pthread.h>
    422421#include <stdarg.h>
     
    39433942}
    39443943
     3944#if ENABLE(GLOBAL_FASTMALLOC_NEW)
     3945
    39453946void* operator new(size_t size) {
    39463947  void* p = cpp_alloc(size, false);
     
    39963997  do_free(p);
    39973998}
     3999
     4000#endif
    39984001
    39994002extern "C" void* memalign(size_t align, size_t size) __THROW {
Note: See TracChangeset for help on using the changeset viewer.