Changeset 42356 in webkit


Ignore:
Timestamp:
Apr 9, 2009 5:29:42 AM (15 years ago)
Author:
xan@webkit.org
Message:

2009-04-09 Xan Lopez <xlopez@igalia.com>

Unreviewed build fix.

Checking for GLIBCXX being bigger than some date is not enough
to get std::tr1, C++0x has to be in use too. Add another check for
GXX_EXPERIMENTAL_CXX0X.

  • wtf/TypeTraits.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r42347 r42356  
     12009-04-09  Xan Lopez  <xlopez@igalia.com>
     2
     3        Unreviewed build fix.
     4
     5        Checking for __GLIBCXX__ being bigger than some date is not enough
     6        to get std::tr1, C++0x has to be in use too. Add another check for
     7        __GXX_EXPERIMENTAL_CXX0X__.
     8
     9        * wtf/TypeTraits.h:
     10
    1112009-04-08  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/JavaScriptCore/wtf/TypeTraits.h

    r42344 r42356  
    2525#include "Platform.h"
    2626
    27 #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
     27#if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
    2828#include <type_traits>
    2929#endif
     
    133133    };
    134134
    135 #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
     135#if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
    136136
    137137    // GCC's libstdc++ 20070724 and later supports C++ TR1 type_traits in the std namespace.
Note: See TracChangeset for help on using the changeset viewer.