>From e0b54d10551f94f0c0e974641a65060f3f033a7d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 2 Mar 2021 02:24:41 +0100 Subject: [PATCH 5/5] Fix a compilation error with GCC < 4.6. * libpoke/pkl.h (pkl_env): Don't define as a type. Forward-declare only. (pkl_get_env): Update declaration. --- libpoke/pkl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpoke/pkl.h b/libpoke/pkl.h index 9f86a79..d0c12bd 100644 --- a/libpoke/pkl.h +++ b/libpoke/pkl.h @@ -140,9 +140,9 @@ pvm pkl_get_vm (pkl_compiler compiler); /* Return the current compile-time environment in COMPILER. */ -typedef struct pkl_env *pkl_env; /* Struct defined in pkl-env.c */ +struct pkl_env; /* Defined in pkl-env.c */ -pkl_env pkl_get_env (pkl_compiler compiler); +struct pkl_env *pkl_get_env (pkl_compiler compiler); /* Returns a boolean telling whether the compiler has been bootstrapped. */ -- 2.7.4