diff options
Diffstat (limited to 'patches/www-client/chromium-73.0.3683.75/alignof.patch')
-rw-r--r-- | patches/www-client/chromium-73.0.3683.75/alignof.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/www-client/chromium-73.0.3683.75/alignof.patch b/patches/www-client/chromium-73.0.3683.75/alignof.patch new file mode 100644 index 0000000..e606cb2 --- /dev/null +++ b/patches/www-client/chromium-73.0.3683.75/alignof.patch @@ -0,0 +1,17 @@ +description: use __alignof__ since as of gcc8 alignof returns 4 != 8 bytes on i386 +origin: https://src.fedoraproject.org/cgit/rpms/chromium.git/tree/chromium-66.0.3359.170-gcc8-alignof.patch +author: Fedora chromium maintainers + +--- a/mojo/public/c/system/macros.h ++++ b/mojo/public/c/system/macros.h +@@ -27,9 +27,7 @@ + (sizeof(void*) == 4 ? 32 : 0) + + // Like the C++11 |alignof| operator. +-#if __cplusplus >= 201103L +-#define MOJO_ALIGNOF(type) alignof(type) +-#elif defined(__GNUC__) ++#if defined(__GNUC__) + #define MOJO_ALIGNOF(type) __alignof__(type) + #elif defined(_MSC_VER) + // The use of |sizeof| is to work around a bug in MSVC 2010 (see |