Changeset 85521 in webkit
- Timestamp:
- May 2, 2011 2:13:00 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r85497 r85521 1 2011-05-02 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Use native NullPtr when using GCC 4.6.0 and C++0x 6 https://bugs.webkit.org/show_bug.cgi?id=59252 7 8 GCC 4.6.0 has nullptr support, use it when possible. 9 10 * wtf/NullPtr.cpp: include config.h to pull in Platform.h before 11 NullPtr.h, since we need the GCC_VERSION_AT_LEAST definition. 12 * wtf/NullPtr.h: check for GCC >= 4.6.0 and C++0x in order to 13 use native nullptr. 14 1 15 2011-05-02 Gavin Barraclough <barraclough@apple.com> 2 16 -
trunk/Source/JavaScriptCore/wtf/NullPtr.cpp
r74695 r85521 25 25 */ 26 26 27 #include "config.h" 27 28 #include "NullPtr.h" 28 29 #include "Platform.h"30 29 31 30 #if !HAVE(NULLPTR) -
trunk/Source/JavaScriptCore/wtf/NullPtr.h
r74695 r85521 36 36 #endif 37 37 38 #if __has_feature(cxx_nullptr) || ( defined(_MSC_VER) && _MSC_VER >= 1600)38 #if __has_feature(cxx_nullptr) || (GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && _MSC_VER >= 1600) 39 39 40 40 #define HAVE_NULLPTR 1
Note: See TracChangeset
for help on using the changeset viewer.