FreeBSD Bugzilla – Attachment 174469 Details for
Bug 212431
www/firefox: Fix build with libc++ 3.9.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for mozilla bug 1268816
patch-bug1268816 (text/plain), 3.64 KB, created by
Jan Beich
on 2016-09-07 09:55:16 UTC
(
hide
)
Description:
Patch for mozilla bug 1268816
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2016-09-07 09:55:16 UTC
Size:
3.64 KB
patch
obsolete
> ># HG changeset patch ># User Lee Salzman <lsalzman@mozilla.com> ># Date 1461978185 14400 ># Node ID b622cbd9ba13d01abcb1d04684dcb39c22a08590 ># Parent f3a5c8b5e17073a1e68f079da93f8dbe10e454a9 >Bug 1268816 - allow Skia to use C++11 features on platforms that have them. r=froydnj > >diff --git config/stl-headers config/stl-headers >--- config/stl-headers >+++ config/stl-headers >@@ -29,16 +29,17 @@ iterator > limits > list > map > memory > ostream > set > stack > string >+type_traits > utility > vector > cassert > climits > cmath > cstdarg > cstdio > cstdlib >diff --git config/system-headers config/system-headers >--- config/system-headers >+++ config/system-headers >@@ -1109,16 +1109,17 @@ ThreadManagerTests.h > Threads.h > time.h > Timer.h > tlhelp32.h > ToolUtils.h > tr1/functional > trace.h > Traps.h >+type_traits > typeinfo > types.h > Types.h > UAppleEventsMgr.h > UAttachments.h > ucontext.h > uconv.h > UCursor.h >diff --git gfx/skia/skia/include/config/SkUserConfig.h gfx/skia/skia/include/config/SkUserConfig.h >--- gfx/skia/skia/include/config/SkUserConfig.h >+++ gfx/skia/skia/include/config/SkUserConfig.h >@@ -159,9 +159,20 @@ > #ifndef MOZ_IMPLICIT > # ifdef MOZ_CLANG_PLUGIN > # define MOZ_IMPLICIT __attribute__((annotate("moz_implicit"))) > # else > # define MOZ_IMPLICIT > # endif > #endif > >+/* Check if building with either MSVC, libc++, or a sufficiently recent version of libstdc++. >++ * On platforms like OS X 10.6 or older Android SDKs, we need to work around a lack of certain >++ * C++11 features. >++ */ >+#include "mozilla/Compiler.h" >+#if MOZ_IS_MSVC || MOZ_USING_LIBCXX || MOZ_LIBSTDCXX_VERSION_AT_LEAST(4, 8, 0) >+# define MOZ_SKIA_AVOID_CXX11 0 >+#else >+# define MOZ_SKIA_AVOID_CXX11 1 > #endif >+ >+#endif >diff --git gfx/skia/skia/include/private/SkTLogic.h gfx/skia/skia/include/private/SkTLogic.h >--- gfx/skia/skia/include/private/SkTLogic.h >+++ gfx/skia/skia/include/private/SkTLogic.h >@@ -24,7 +24,7 @@ > #include <algorithm> > #endif > >-#ifdef MOZ_SKIA >+#if MOZ_SKIA_AVOID_CXX11 > #include "mozilla/Move.h" > #include "mozilla/TypeTraits.h" > >@@ -32,23 +32,9 @@ > #include "mozilla/Function.h" > #endif > >-// In libc++, symbols such as std::forward may be defined in std::__1. >-// The _LIBCPP_BEGIN_NAMESPACE_STD and _LIBCPP_END_NAMESPACE_STD macros >-// will expand to the correct namespace. >-#ifdef _LIBCPP_BEGIN_NAMESPACE_STD >-#define MOZ_BEGIN_STD_NAMESPACE _LIBCPP_BEGIN_NAMESPACE_STD >-#define MOZ_END_STD_NAMESPACE _LIBCPP_END_NAMESPACE_STD >-#else >-#define MOZ_BEGIN_STD_NAMESPACE namespace std { >-#define MOZ_END_STD_NAMESPACE } >-#endif >- >-MOZ_BEGIN_STD_NAMESPACE >+namespace std { > using mozilla::Forward; > #define forward Forward >-MOZ_END_STD_NAMESPACE >- >-namespace std { > #if SKIA_IMPLEMENTATION > using mozilla::IntegralConstant; > using mozilla::IsEmpty; >@@ -73,7 +59,7 @@ template <bool B, typename T = void> usi > > } > >-#else /* !MOZ_SKIA */ >+#else /* !MOZ_SKIA_AVOID_CXX11 */ > > #include <type_traits> > #include <functional> >@@ -178,7 +164,7 @@ template <typename D, typename S> using > > } // namespace sknonstd > >-#endif /* MOZ_SKIA */ >+#endif /* MOZ_SKIA_AVOID_CXX11 */ > > // Just a pithier wrapper for enable_if_t. > #define SK_WHEN(condition, T) skstd::enable_if_t<!!(condition), T> >diff --git gfx/skia/skia/include/private/SkUniquePtr.h gfx/skia/skia/include/private/SkUniquePtr.h >--- gfx/skia/skia/include/private/SkUniquePtr.h >+++ gfx/skia/skia/include/private/SkUniquePtr.h >@@ -7,17 +7,17 @@ > > #ifndef SkUniquePtr_DEFINED > #define SkUniquePtr_DEFINED > > #include "SkTLogic.h" > #include <cstddef> > #include <utility> > >-#ifdef MOZ_SKIA >+#if MOZ_SKIA_AVOID_CXX11 > #include "mozilla/UniquePtr.h" > > namespace std { > using mozilla::DefaultDelete; > using mozilla::UniquePtr; > } > > namespace skstd {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dim
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 212431
:
174439
|
174440
| 174469