Speculative build fix for FreeBSD+GLIBC configuration

See
a1f9b62dd0
features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=9 years)
parent 44a13a7f25
commit 4961b2ea18
  1. 4
      imgui_draw.cpp

@ -18,9 +18,11 @@
#include "imgui_internal.h"
#include <stdio.h> // vsnprintf, sscanf, printf
#if !defined(alloca) && !defined(__FreeBSD__) && !defined(__DragonFly__)
#if !defined(alloca)
#ifdef _WIN32
#include <malloc.h> // alloca
#elif (defined(__FreeBSD__) || defined(FreeBSD_kernel) || defined(__DragonFly__)) && !defined(__GLIBC__)
#include <stdlib.h> // alloca. FreeBSD uses stdlib.h unless GLIBC
#else
#include <alloca.h> // alloca
#endif

Loading…
Cancel
Save