Malloc declaration needed for Visual Studio

This commit is contained in:
Robin Stuart 2016-11-05 16:46:24 +00:00
parent 06dafdce3c
commit 5992bbf6e5
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#include <io.h> #include <io.h>
#include <fcntl.h> #include <fcntl.h>
#include <malloc.h>
#endif #endif
#define SSET "0123456789ABCDEF" #define SSET "0123456789ABCDEF"

View File

@ -35,6 +35,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#ifdef _MSC_VER
#include <malloc.h>
#endif
#include "common.h" #include "common.h"
#define SSET "0123456789ABCDEF" #define SSET "0123456789ABCDEF"