From e1e351e89a169ab1571123a22d0ce11550ab1dcb Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 14 Dec 2023 08:38:56 -0700 Subject: [PATCH] perl.h: Need just MULTIPLICITY for context PERL_UNUSED_CONTEXT should be defined properly whenever there is a my_perl. This happens whenever MULTIPLICITY is defined. Prior to this commit PERL_UNUSED_CONTEXT got defined properly only when threads are being used. You can have MULTIPLICITY without threads. --- perl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl.h b/perl.h index 4c57734b701d..4cf652922ba7 100644 --- a/perl.h +++ b/perl.h @@ -570,7 +570,7 @@ compilation causes it be used just some times. # define PERL_UNUSED_VAR(x) ((void)sizeof(x)) #endif -#if defined(USE_ITHREADS) +#if defined(MULTIPLICITY) # define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl) #else # define PERL_UNUSED_CONTEXT