diff options
author | hackyminer <hackyminer@gmail.com> | 2020-06-10 23:42:38 +0900 |
---|---|---|
committer | hackyminer <hackyminer@gmail.com> | 2020-06-10 23:42:38 +0900 |
commit | 6cd4612b341b6d5f0df0b604a1f2ee793539a0d9 (patch) | |
tree | 3ef7c38d45b150b4005391907815c9ff2eb75586 /common.h | |
parent | Deprecate libkeccak_{state,hmac}_{unmarshal_skip,marshal_size} and replace with the functions without the _skip or _size suffix (diff) | |
download | libkeccak-6cd4612b341b6d5f0df0b604a1f2ee793539a0d9.tar.gz libkeccak-6cd4612b341b6d5f0df0b604a1f2ee793539a0d9.tar.bz2 libkeccak-6cd4612b341b6d5f0df0b604a1f2ee793539a0d9.tar.xz |
support WIN32
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -3,7 +3,14 @@ #include <sys/stat.h> +#if defined(__GLIBC__) || defined(__sun) || defined(__CYGWIN__) #include <alloca.h> +#elif defined(_WIN32) +#include <malloc.h> +#if !defined(alloca) +#define alloca _alloca // for clang with MS Codegen +#endif +#endif #include <errno.h> #include <unistd.h> |