From 4961b2ea18e9446e8a0bd0edb4b3a6942ff8dc89 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 16 Jul 2016 11:44:10 +0200 Subject: [PATCH] Speculative build fix for FreeBSD+GLIBC configuration See https://github.com/mamedev/mame/commit/a1f9b62dd0a491d6b26291837d43181c0e9e66fa --- imgui_draw.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index ba20abc8..1cbd39d8 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -18,9 +18,11 @@ #include "imgui_internal.h" #include // vsnprintf, sscanf, printf -#if !defined(alloca) && !defined(__FreeBSD__) && !defined(__DragonFly__) +#if !defined(alloca) #ifdef _WIN32 #include // alloca +#elif (defined(__FreeBSD__) || defined(FreeBSD_kernel) || defined(__DragonFly__)) && !defined(__GLIBC__) +#include // alloca. FreeBSD uses stdlib.h unless GLIBC #else #include // alloca #endif