From cfb2b8feedbf8b9ae13cbf1c9b73421b1fd98315 Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Sat, 4 Jan 2025 14:37:22 +0100 Subject: [PATCH] PORT: Use C99 constructs for a portable version of ``struct functor`` Structs may use ``type name[]`` as last field for a dynamic array. --- src/pl-incl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pl-incl.h b/src/pl-incl.h index 3b251d1d10..ea7eb993b6 100644 --- a/src/pl-incl.h +++ b/src/pl-incl.h @@ -1602,7 +1602,7 @@ struct mark struct functor { word definition; /* Tagged definition pointer */ - word arguments[1]; /* arguments vector */ + word arguments[]; /* arguments vector */ }; struct clause_bucket