Support building cncrypto lib with msvc

This commit is contained in:
Matt Little 2018-01-25 13:00:45 -07:00
parent 5f09d6c833
commit 7c4424531f
4 changed files with 24 additions and 5 deletions

View file

@ -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>