Differential D22184 Diff 64134 www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_base_utils.h
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_base_utils.h
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/utils.h.orig 2019-05-23 12:39:34 UTC | |||||
+++ src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/utils.h | |||||
@@ -22,6 +22,7 @@ | |||||
#include <errno.h> | |||||
#include <stddef.h> | |||||
#include <stdlib.h> | |||||
+#include <type_traits> | |||||
#if !PERFETTO_BUILDFLAG(PERFETTO_OS_WIN) | |||||
#include <sys/types.h> | |||||
#endif | |||||
@@ -91,7 +92,7 @@ struct FreeDeleter { | |||||
template <typename T> | |||||
constexpr T AssumeLittleEndian(T value) { | |||||
- static_assert(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__, | |||||
+ static_assert(std::is_same<T,T>::value && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__, | |||||
"Unimplemented on big-endian archs"); | |||||
return value; | |||||
} |