All BSD-like platforms have alloca in stdlib.h

This commit is contained in:
Frédéric Fauberteau committed 2025-02-08 10:58:15 +01:00
1 parent 02cdf79c82
commit 98e7d3ea32
1 file changed
+3 -1
+3 -1
View File
@@ -18,8 +18,10 @@
#include <vector>
#ifndef _WIN32
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
#if defined(__linux__) || defined(__sun)
#include <alloca.h>
#else
#include <stdlib.h>
#endif
#include <unicode/ucnv.h>
#include <unicode/unistr.h>