From bff7202ff2ba78dbba59950c85b097c665729e9f Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Fri, 31 May 2019 01:52:22 +0200 Subject: [PATCH] Include also when __SWITCH__ is defined (#2595) Fixes compilation with devkitPro for Nintendo Switch --- imgui_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index e4b906ff..5e968450 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -33,7 +33,7 @@ Index of this file: #include // vsnprintf, sscanf, printf #if !defined(alloca) -#if defined(__GLIBC__) || defined(__sun) || defined(__CYGWIN__) || defined(__APPLE__) +#if defined(__GLIBC__) || defined(__sun) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__SWITCH__) #include // alloca (glibc uses . Note that Cygwin may have _WIN32 defined, so the order matters here) #elif defined(_WIN32) #include // alloca