Fix crash of lzocompres and lzodecompress

Without stdlib.h malloc is assumed to return int, which is not compatible with void * in x64.
This commit is contained in:
kusano 2016-03-29 06:55:29 +09:00
parent 25e5605c50
commit d191aadc04
2 changed files with 8 additions and 0 deletions

View file

@ -15,6 +15,10 @@
#include <stdio.h>
#include <stdlib.h>
#if defined(_WIN32)
#include <io.h>
#endif
int main(int argc, char *argv[])
{

View file

@ -17,6 +17,10 @@
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#if defined(_WIN32)
#include <io.h>
#endif
int main(int argc, char *argv[])
{