Skip to content

Commit

Permalink
Merge pull request #1319 from RyuKojiro/more_portable_alloca_include-…
Browse files Browse the repository at this point in the history
…ocornut

Simplify alloca.h include condition (fix for NetBSD)
  • Loading branch information
ocornut authored Sep 11, 2017
2 parents cb2775a + cf6ba9d commit 3420080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#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
#elif !defined(__GLIBC__)
#include <stdlib.h> // alloca
#else
#include <alloca.h> // alloca
#include <alloca.h> // alloca. glibc has an alloca specific header
#endif
#endif

Expand Down

0 comments on commit 3420080

Please sign in to comment.