mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Implement ZSTD_ALIGNED for ms compiler
This commit is contained in:
parent
9fbed3330c
commit
a0872a8372
1 changed files with 2 additions and 0 deletions
|
|
@ -321,6 +321,8 @@ MEM_STATIC int ZSTD_isPower2(size_t u) {
|
|||
# define ZSTD_ALIGNED(a) __attribute__((aligned(a)))
|
||||
# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
|
||||
# define ZSTD_ALIGNED(a) alignas(a)
|
||||
#elif defined(_MSC_VER)
|
||||
# define ZSTD_ALIGNED(n) __declspec(align(n))
|
||||
# else
|
||||
/* this compiler will require its own alignment instruction */
|
||||
# define ZSTD_ALIGNED(...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue