Fix compilation with MinGW

This commit is contained in:
Cameron Cawley
2021-06-29 15:55:28 +01:00
parent b164e49dcf
commit 39933ccc21
4 changed files with 11 additions and 16 deletions

View File

@@ -26,11 +26,13 @@
#endif
#include "imgui_internal.h"
#include "ImGuizmo.h"
#if !defined(_WIN32)
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h>
#endif
#if !defined(_MSC_VER) && !defined(__MINGW64_VERSION_MAJOR)
#define _malloca(x) alloca(x)
#define _freea(x)
#else
#include <malloc.h>
#endif
// includes patches for multiview from