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:
parent
ef7b0df419
commit
3430552881
@ -1055,6 +1055,11 @@
|
|||||||
# define Q_ALIGNOF(x) alignof(x)
|
# define Q_ALIGNOF(x) alignof(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(Q_COMPILER_ALIGNAS)
|
||||||
|
# undef Q_DECL_ALIGN
|
||||||
|
# define Q_DECL_ALIGN(n) alignas(n)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fallback macros to certain compiler features
|
* Fallback macros to certain compiler features
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user