aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/tree-hash.c
diff options
context:
space:
mode:
authorMatt Little <zone117x@gmail.com>2018-01-25 13:00:45 -0700
committerMatt Little <zone117x@gmail.com>2018-01-25 13:00:45 -0700
commit7c4424531ff0dbe6958d6dd8beaeb978d3a6ebdb (patch)
tree323e5d60db89952f030749178cc34b143a0b52a4 /src/crypto/tree-hash.c
parentMerge pull request #3115 (diff)
downloadmonero-7c4424531ff0dbe6958d6dd8beaeb978d3a6ebdb.tar.xz
Support building cncrypto lib with msvc
Diffstat (limited to 'src/crypto/tree-hash.c')
-rw-r--r--src/crypto/tree-hash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/tree-hash.c b/src/crypto/tree-hash.c
index eb98c31b7..812f08786 100644
--- a/src/crypto/tree-hash.c
+++ b/src/crypto/tree-hash.c
@@ -34,7 +34,9 @@
#include "hash-ops.h"
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
+#ifdef _MSC_VER
+#include <malloc.h>
+#elif !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
#include <alloca.h>
#else
#include <stdlib.h>