Merge pull request #1046 from ajrhacker/freebsd_fix

Hopefully fix imgui compile on FreeBSD and DragonFly (nw)
This commit is contained in:
R. Belmont 2016-07-07 22:36:24 -04:00 committed by GitHub
commit a1f9b62dd0

View File

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