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:
parent
25e5605c50
commit
d191aadc04
4
thirdparty/lzo/driver/lzocompress.c
vendored
4
thirdparty/lzo/driver/lzocompress.c
vendored
|
@ -15,6 +15,10 @@
|
|||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if defined(_WIN32)
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
|
4
thirdparty/lzo/driver/lzodecompress.c
vendored
4
thirdparty/lzo/driver/lzodecompress.c
vendored
|
@ -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[])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue