This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Time-HiRes uses PERL compare macro
authorNicolas R <nicolas@atoomic.org>
Mon, 10 Aug 2020 22:26:05 +0000 (16:26 -0600)
committerNicolas R <nicolas@atoomic.org>
Mon, 10 Aug 2020 22:26:05 +0000 (16:26 -0600)
dist/Time-HiRes/HiRes.xs

index fbabd94..ca81e5a 100644 (file)
@@ -901,7 +901,7 @@ nsec_without_unslept(struct timespec *sleepfor,
 /* In case Perl and/or Devel::PPPort are too old, minimally emulate
  * IS_SAFE_PATHNAME() (which looks for zero bytes in the pathname). */
 #ifndef IS_SAFE_PATHNAME
-#  if PERL_VERSION >= 12 /* Perl_ck_warner is 5.10.0 -> */
+#  if PERL_VERSION_GE(5,12,0) /* Perl_ck_warner is 5.10.0 -> */
 #    ifdef WARN_SYSCALLS
 #      define WARNEMUCAT WARN_SYSCALLS /* 5.22.0 -> */
 #    else