From ee23f921513cbfbc7ed57f8adbb7a85255351fb0 Mon Sep 17 00:00:00 2001 From: gitlost Date: Tue, 13 Sep 2022 17:29:15 +0100 Subject: [PATCH] common.h: only include alloca.h if C89 or NuttX --- backend/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/common.h b/backend/common.h index 7b70747c..a1c44fb6 100644 --- a/backend/common.h +++ b/backend/common.h @@ -45,7 +45,7 @@ extern "C" { # include # define z_alloca(nmemb) _alloca(nmemb) #else -# if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)) /* BSD */ +# if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L) || defined(__NuttX__) /* C89 or NuttX RTOS */ # include # endif # define z_alloca(nmemb) alloca(nmemb)