mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
alloca fix to allow Clang with Microsoft CodeGen path
This commit is contained in:
parent
e67f3809ed
commit
6d93011fdf
@ -22,6 +22,9 @@
|
|||||||
#if !defined(alloca)
|
#if !defined(alloca)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h> // alloca
|
#include <malloc.h> // alloca
|
||||||
|
#if !defined(alloca)
|
||||||
|
#define alloca _alloca // for clang with MS Codegen
|
||||||
|
#endif
|
||||||
#elif defined(__GLIBC__) || defined(__sun)
|
#elif defined(__GLIBC__) || defined(__sun)
|
||||||
#include <alloca.h> // alloca
|
#include <alloca.h> // alloca
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user