Ignore:
Timestamp:
Dec 9, 2009, 11:00:04 AM (15 years ago)
Author:
[email protected]
Message:

Attempt to fix the Windows build.

Reviewed by Sam Weinig.

  • wtf/FastMalloc.h:
File:
1 edited

Legend:

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

    r51905 r51908  
    217217#if !PLATFORM(QT)
    218218
     219#if COMPILER(MSVC)
     220#pragma warning(push)
     221#pragma warning(disable: 4290) // Disable the C++ exception specification ignored warning.
     222#endif
    219223WTF_PRIVATE_INLINE void* operator new(size_t size) throw (std::bad_alloc) { return fastMalloc(size); }
    220224WTF_PRIVATE_INLINE void* operator new(size_t size, const std::nothrow_t&) throw() { return fastMalloc(size); }
     
    225229WTF_PRIVATE_INLINE void operator delete[](void* p) throw() { fastFree(p); }
    226230WTF_PRIVATE_INLINE void operator delete[](void* p, const std::nothrow_t&) throw() { fastFree(p); }
     231#if COMPILER(MSVC)
     232#pragma warning(pop)
     233#endif
    227234
    228235#endif
Note: See TracChangeset for help on using the changeset viewer.