fix(sha1): include malloc.h for alloca in Windows builds

This commit is contained in:
fallenoak 2023-02-06 17:16:02 -06:00 committed by GitHub
parent 04ee35a71b
commit c5b11193a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,10 @@
#include <cstdlib>
#include <cstring>
#if defined(WHOA_SYSTEM_WIN)
#include <malloc.h>
#endif
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
#if defined(__BIG_ENDIAN__)