[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] libpoke: fix building pvm.jitter on windows
From: |
Hannes Domani |
Subject: |
[PATCH] libpoke: fix building pvm.jitter on windows |
Date: |
Tue, 20 Feb 2024 19:50:22 +0100 |
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-20 Hannes Domani <ssbssa@yahoo.de>
* libpoke/pvm.jitter: Undef raise.
---
libpoke/pvm.jitter | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libpoke/pvm.jitter b/libpoke/pvm.jitter
index 6390d353..3824236c 100644
--- a/libpoke/pvm.jitter
+++ b/libpoke/pvm.jitter
@@ -247,6 +247,8 @@ late-header-c
type as an integer in the main stack, before branching to the
exception handler. */
+#undef raise
+
#define PVM_RAISE_DIRECT(EXCEPTION) \
do \
{ \
--
2.35.1
- [PATCH] libpoke: fix building pvm.jitter on windows,
Hannes Domani <=