Skip to content

Commit

Permalink
When using MSVC on aarch64, __ARM_ARCH is not defined
Browse files Browse the repository at this point in the history
Reported by RADDI.net -- Thanks!
  • Loading branch information
jedisct1 committed Jan 7, 2024
1 parent 56bef8a commit 4c56848
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsodium/include/sodium/private/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ xor_buf(unsigned char *out, const unsigned char *in, size_t n)

# elif defined(_M_ARM64)

# ifndef __ARM_ARCH
# define __ARM_ARCH 1
# endif
# ifndef __ARM_NEON
# define __ARM_NEON 1
# endif
Expand Down

0 comments on commit 4c56848

Please sign in to comment.