Skip to content

Commit

Permalink
Speculative build fix for FreeBSD+GLIBC configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jul 16, 2016
1 parent 44a13a7 commit 4961b2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4961b2e

Please sign in to comment.