Use C++11 alignas() for Q_DECL_ALIGN, if possible

Change-Id: Ifea6e497f11a461db432ffff144863d4ed69a212
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Thiago Macieira 2016-04-24 12:57:25 -07:00
parent ef7b0df419
commit 3430552881

View File

@ -1055,6 +1055,11 @@
# define Q_ALIGNOF(x) alignof(x)
#endif
#if defined(Q_COMPILER_ALIGNAS)
# undef Q_DECL_ALIGN
# define Q_DECL_ALIGN(n) alignas(n)
#endif
/*
* Fallback macros to certain compiler features
*/