diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-10 17:14:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 17:14:39 +0200 |
commit | 3d72bb0e3fda83cf6577ea9cf2f890f3fd8737c5 (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) | |
parent | support WIN32 (diff) | |
download | libkeccak-3d72bb0e3fda83cf6577ea9cf2f890f3fd8737c5.tar.gz libkeccak-3d72bb0e3fda83cf6577ea9cf2f890f3fd8737c5.tar.bz2 libkeccak-3d72bb0e3fda83cf6577ea9cf2f890f3fd8737c5.tar.xz |
Merge pull request #12 from hackmod/win32
minimal WIN32 support added
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> |