[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU poke 3.90.0 on FreeBSD/sparc64
From: |
Jose E. Marchesi |
Subject: |
Re: GNU poke 3.90.0 on FreeBSD/sparc64 |
Date: |
Thu, 25 Jan 2024 10:57:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Bruno, Mohammad.
> * libpoke/libpoke.h (pk_compiler): Don't define if already defined.
> * poke/pk-term.h (pk_compiler): Likewise.
> ---
> libpoke/libpoke.h | 3 +++
> poke/pk-term.h | 3 +++
> 2 files changed, 6 insertions(+)
>
> diff --git a/libpoke/libpoke.h b/libpoke/libpoke.h
> index baee3b91..65d318d3 100644
> --- a/libpoke/libpoke.h
> +++ b/libpoke/libpoke.h
> @@ -36,7 +36,10 @@
> #define LIBPOKE_NONNULL(...)
> #endif
>
> +#ifndef PK_COMPILER_DEFINED
> typedef struct _pk_compiler *pk_compiler;
> +# define PK_COMPILER_DEFINED 1
> +#endif
> typedef struct _pk_ios *pk_ios;
> typedef uint64_t pk_val;
>
> diff --git a/poke/pk-term.h b/poke/pk-term.h
> index 57274d4f..227378d6 100644
> --- a/poke/pk-term.h
> +++ b/poke/pk-term.h
> @@ -24,7 +24,10 @@
> #include <textstyle.h>
>
> /* From libpoke.h. */
> +#ifndef PK_COMPILER_DEFINED
> typedef struct _pk_compiler *pk_compiler;
> +# define PK_COMPILER_DEFINED 1
> +#endif
>
> /* Defined in poke.c. */
> extern pk_compiler poke_compiler;
Isn't better to just include libpoke.h in pk-term.h? Mohammad?