use different header for alloca(3) on *BSD

This commit is contained in:
Axel Kohlmeyer
2020-05-03 01:10:04 -04:00
parent fa2a6d7c6b
commit e8d4cc424e

View File

@ -1,5 +1,11 @@
#ifndef _WIN32
#if !defined(_WIN32)
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <cstdlib>
#else
#include <alloca.h>
#endif
#endif
#include "Function.h"
#include "ATC_Error.h"