Fix #ifdef merging order error in change 27965, controlling (un)pack features.
authorNicholas Clark <nick@ccl4.org>
Wed, 22 Apr 2009 22:03:05 +0000 (23:03 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 22 Apr 2009 22:06:01 +0000 (23:06 +0100)
(Commit 3314a176ae98f93ebb8341affdc541b51b4e0943 in new money)
PERL_PACK_CAN_W, and in a later commit PERL_PACK_CAN_DOT, are only supposed to
be #defined if PERL_VERSION >= 9.

pp_pack.c

index 57e0292..e3cc161 100644 (file)
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -69,13 +69,13 @@ typedef struct tempsym {
        (symptr)->previous = NULL;      \
    } STMT_END
 
+#ifndef CHAR_BIT
+# define CHAR_BIT      8
+#endif
+
 #if PERL_VERSION >= 9
 # define PERL_PACK_CAN_BYTEORDER
 # define PERL_PACK_CAN_SHRIEKSIGN
-#endif
-
-#ifndef CHAR_BIT
-# define CHAR_BIT      8
 #define PERL_PACK_CAN_W
 #define PERL_PACK_CAN_DOT
 #else