mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
fix(sha1): include malloc.h for alloca in Windows builds
This commit is contained in:
parent
04ee35a71b
commit
c5b11193a2
1 changed files with 4 additions and 0 deletions
|
|
@ -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__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue