fix windows build
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
|
#include <windows.h>
|
||||||
FILE *fmemopen(void *buf, size_t size, const char *mode) {
|
FILE *fmemopen(void *buf, size_t size, const char *mode) {
|
||||||
if (strchr(mode, 'r') == NULL) {
|
if (strchr(mode, 'r') == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user