Skip to content

Commit e368910

Browse files
committed
Revert "plperl: Fix breakage of c89f409 in back branches."
This reverts commits d81cac4 et al. We shouldn't need that hack after the preceding commits. Discussion: https://postgr.es/m/20220131015130.shn6wr2fzuymerf6@alap3.anarazel.de
1 parent 923f9f4 commit e368910

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pl/plperl/plperl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ static char *strip_trailing_ws(const char *msg);
302302
static OP *pp_require_safe(pTHX);
303303
static void activate_interpreter(plperl_interp_desc *interp_desc);
304304

305-
#if defined(WIN32) && PERL_VERSION < 28
305+
#if defined(WIN32) && PERL_VERSION_LT(5, 28, 0)
306306
static char *setlocale_perl(int category, char *locale);
307307
#else
308308
#define setlocale_perl(a,b) Perl_setlocale(a,b)
309-
#endif /* defined(WIN32) && PERL_VERSION < 28 */
309+
#endif /* defined(WIN32) && PERL_VERSION_LT(5, 28, 0) */
310310

311311
/*
312312
* Decrement the refcount of the given SV within the active Perl interpreter
@@ -4143,7 +4143,7 @@ plperl_inline_callback(void *arg)
41434143
*
41444144
* Starting in 5.28, perl exposes Perl_setlocale to do so.
41454145
*/
4146-
#if defined(WIN32) && PERL_VERSION < 28
4146+
#if defined(WIN32) && PERL_VERSION_LT(5, 28, 0)
41474147
static char *
41484148
setlocale_perl(int category, char *locale)
41494149
{
@@ -4211,4 +4211,4 @@ setlocale_perl(int category, char *locale)
42114211

42124212
return RETVAL;
42134213
}
4214-
#endif /* defined(WIN32) && PERL_VERSION < 28 */
4214+
#endif /* defined(WIN32) && PERL_VERSION_LT(5, 28, 0) */

0 commit comments

Comments
 (0)