summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-12-10 14:32:13 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-12-10 15:41:53 +0000
commit0c72e11fee13749f697ab87d9f6b04c835696657 (patch)
tree789a9f00163190348a5848a0c777b66e8ed72d1a
parent323b45aa242e0b4e75689d67418ec124ba1ca815 (diff)
Fix x86-32 builds with GCC 8
The C++11 alignof() now returns minimum alignment and not prefered alignment which Chromium expects. Change-Id: I7aadb426e6e15b4f2317cafdde550ea74e4c1ccf Fixes: QTBUG-72391 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--chromium/mojo/public/c/system/macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/mojo/public/c/system/macros.h b/chromium/mojo/public/c/system/macros.h
index 6de4a913de7..87016c431d9 100644
--- a/chromium/mojo/public/c/system/macros.h
+++ b/chromium/mojo/public/c/system/macros.h
@@ -27,10 +27,10 @@
(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 __cplusplus >= 201103L
+#define MOJO_ALIGNOF(type) alignof(type)
#elif defined(_MSC_VER)
// The use of |sizeof| is to work around a bug in MSVC 2010 (see
// http://goo.gl/isH0C; supposedly fixed since then).