fix: use after free, ISO C warning

This commit is contained in:
2024-01-19 16:05:02 +01:00
parent 9e00c94677
commit 6fa6d7145f
3 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
#include "fmemopen.h"
typedef int make_iso_compilers_happy; //...
#ifdef _WIN32
#include <windows.h>
#include "fmemopen.h"
#include <share.h>
#include <io.h>
#include <fcntl.h>

View File

@@ -1,5 +1,6 @@
#ifdef _WIN32
#pragma once
#ifdef _WIN32
#include <stdio.h>
FILE *fmemopen(void *buf, size_t len, const char *type);
#endif