[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] libpoke: fix building pvm.jitter on windows
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH v2] libpoke: fix building pvm.jitter on windows |
Date: |
Wed, 21 Feb 2024 16:21:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Hannes.
Thank you. OK for both master and maint/poke-4.
> When trying to build libpoke on windows, you get the following error:
>
> ../../../poke.git/libpoke/pvm.jitter: In function 'pvm_execute_or_initialize':
> ../../../poke.git/libpoke/pvm.jitter:227:37: error:
> 'pvm_specialized_instruction_opcode_rpl_raise' undeclared (first use in this
> function); did you mean 'pvm_specialized_instruction_opcode_raise'?
>
> It's because gnulib replaces raise with rpl_raise in gl-libpoke/signal.h:
>
> #define raise rpl_raise
>
> As far as I can tell, raise is actually not used by libpoke, so this just
> removes the define in the generated header.
>
> 2024-02-21 Hannes Domani <ssbssa@yahoo.de>
>
> * libpoke/pvm.jitter: Undef raise on windows.
> ---
> libpoke/pvm.jitter | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libpoke/pvm.jitter b/libpoke/pvm.jitter
> index 6390d353..33454870 100644
> --- a/libpoke/pvm.jitter
> +++ b/libpoke/pvm.jitter
> @@ -247,6 +247,10 @@ late-header-c
> type as an integer in the main stack, before branching to the
> exception handler. */
>
> +#ifdef _WIN32
> +#undef raise
> +#endif
> +
> #define PVM_RAISE_DIRECT(EXCEPTION) \
> do \
> { \