mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Merge pull request #1046 from ajrhacker/freebsd_fix
Hopefully fix imgui compile on FreeBSD and DragonFly (nw)
This commit is contained in:
commit
a1f9b62dd0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user