Support 5.1 and 7.1 in alffplay
[openal-soft.git] / include / align.h
blobbe01f4e471fd0fae6bbd2c13a3171d92c3cd4937
1 #ifndef AL_ALIGN_H
2 #define AL_ALIGN_H
4 #if defined(HAVE_STDALIGN_H) && defined(HAVE_C11_ALIGNAS)
5 #include <stdalign.h>
6 #endif
8 #ifndef alignas
9 #ifdef HAVE_C11_ALIGNAS
10 #define alignas _Alignas
11 #elif defined(IN_IDE_PARSER)
12 /* KDevelop has problems with our align macro, so just use nothing for parsing. */
13 #define alignas(x)
14 #else
15 /* NOTE: Our custom ALIGN macro can't take a type name like alignas can. For
16 * maximum compatibility, only provide constant integer values to alignas. */
17 #define alignas(_x) ALIGN(_x)
18 #endif
19 #endif
21 #endif /* AL_ALIGN_H */