summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2011-12-31 00:14:50 -0200
committerQt by Nokia <qt-info@nokia.com>2012-03-24 19:07:22 +0100
commit4131c323a36ee8680a3b4d66a2a03a00544751c2 (patch)
treee2bfd06470a413c17229da5f34d3721d264b02bf /src/corelib/global/qglobal.h
parent7e1aec215d0f494c0dff583fa0f2084320f3083e (diff)
Update the C++11 support macros
Move them all to a central place and document each macro, so we don't give typo names by accident Change-Id: Ia863ac3f7ca82e4d2f8388b3e691a12c7e482283 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r--src/corelib/global/qglobal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 99328d52ac..734177638c 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -420,6 +420,10 @@ QT_END_INCLUDE_NAMESPACE
# define Q_DECL_FINAL
#endif
+#if defined(Q_COMPILER_ALIGNOF) && !defined(Q_ALIGNOF)
+# define Q_ALIGNOF(x) alignof(x)
+#endif
+
//defines the type for the WNDPROC on windows
//the alignment needs to be forced for sse2 to not crash with mingw
#if defined(Q_OS_WIN)