Skip to content

Commit

Permalink
changed C11 keyword to _Alignas
Browse files Browse the repository at this point in the history
so that it doesn't depend on #include
  • Loading branch information
Cyan4973 committed Feb 5, 2025
1 parent 6e1d02f commit bcf404c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcf404c

Please sign in to comment.