mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 22:53:08 +00:00
Bug 796925 - Fix clang-on-Linux bustage in parser/html/jArray.h. rs=hsivonen
--HG-- extra : rebase_source : 1efb96732f06fea908dfa5b3a711bc1eafe99132
This commit is contained in:
parent
7c40ae3de2
commit
34be9490e9
@ -100,12 +100,14 @@ class autoJArray {
|
||||
arr = other.arr;
|
||||
length = other.length;
|
||||
}
|
||||
#if defined(__clang__)
|
||||
#if defined(MOZ_HAVE_CXX11_NULLPTR)
|
||||
# if defined(__clang__)
|
||||
// clang on OS X 10.7 does not have std::nullptr_t
|
||||
typedef decltype(nullptr) jArray_nullptr_t;
|
||||
#elif defined(MOZ_HAVE_CXX11_NULLPTR)
|
||||
# else
|
||||
// decltype(nullptr) does not evaluate to std::nullptr_t on GCC 4.6.3
|
||||
typedef std::nullptr_t jArray_nullptr_t;
|
||||
# endif
|
||||
#elif defined(__GNUC__)
|
||||
typedef void* jArray_nullptr_t;
|
||||
#elif defined(_WIN64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user