Support for ARM64
Please add ARM64 definition.
cmocka.h
/* If __WORDSIZE is not set, try to figure it out and default to 32 bit. */
#ifndef __WORDSIZE
# if (defined(__x86_64__) && !defined(__ILP32__)) \
|| defined(__sparc_v9__) \
|| defined(__sparcv9) \
|| defined(__aarch64__)
# define __WORDSIZE 64
# else
# define __WORDSIZE 32
# endif
#endif
As above in the __WORDSIZE definition, to correctly detect ARM64.
Edited by Etienne Pretorius