This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid #elif (less portable than #else #if).
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 10 Aug 2001 13:53:15 +0000 (13:53 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 10 Aug 2001 13:53:15 +0000 (13:53 +0000)
p4raw-id: //depot/perl@11630

handy.h

diff --git a/handy.h b/handy.h
index c7bdf3c..d912735 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -633,10 +633,12 @@ extern long lastxycount[MAXXCOUNT][MAXYCOUNT];
 #ifdef NEED_VA_COPY
 # ifdef va_copy
 #  define Perl_va_copy(s, d) va_copy(d, s)
-# elif defined(__va_copy)
-#  define Perl_va_copy(s, d) __va_copy(d, s)
 # else
-#  define Perl_va_copy(s, d) Copy(s, d, 1, va_list)
+#  if defined(__va_copy)
+#   define Perl_va_copy(s, d) __va_copy(d, s)
+#  else
+#   define Perl_va_copy(s, d) Copy(s, d, 1, va_list)
+#  endif
 # endif
 #endif