Skip to content
Snippets Groups Projects
Commit bcf404c0 authored by Yann Collet's avatar Yann Collet
Browse files

changed C11 keyword to _Alignas

so that it doesn't depend on #include
parent 6e1d02f1
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ MEM_STATIC int ZSTD_isPower2(size_t u) {
# if defined(__GNUC__)
# define ZSTD_ALIGNED(a) __attribute__((aligned(a)))
# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
# define ZSTD_ALIGNED(a) alignas(a)
# define ZSTD_ALIGNED(a) _Alignas(a)
#elif defined(_MSC_VER)
# define ZSTD_ALIGNED(n) __declspec(align(n))
# else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment