poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] libpoke: fix building pvm.jitter on windows


From: Hannes Domani
Subject: [PATCH v2] libpoke: fix building pvm.jitter on windows
Date: Wed, 21 Feb 2024 15:37:53 +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-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                                                                  \
   {                                                                   \
-- 
2.35.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]