From 92096162d2beefb9b63eef9cf3f3885b9cc414ff Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 21 May 2013 11:38:04 +0200 Subject: check for alloca --- asn1c/sys-common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asn1c') diff --git a/asn1c/sys-common.h b/asn1c/sys-common.h index cac71c01..9ab1e6bb 100644 --- a/asn1c/sys-common.h +++ b/asn1c/sys-common.h @@ -64,7 +64,9 @@ #ifndef EX_OSFILE #define EX_OSFILE 72 #endif +#if defined HAVE_DECL_ALLOCA && !HAVE_DECL_ALLOCA #define alloca _alloca +#endif #define snprintf _snprintf #endif /* _WIN32 */ -- cgit v1.2.3