handy.h: Move the _LC_CAST declaration.
authorBrian Fraser <fraserbn@gmail.com>
Thu, 23 Jan 2014 14:57:50 +0000 (15:57 +0100)
committerBrian Fraser <fraserbn@gmail.com>
Thu, 23 Jan 2014 14:57:50 +0000 (15:57 +0100)
Previous it was left so that some systems, like Android, didn't get this,
which broke the build.

handy.h

diff --git a/handy.h b/handy.h
index f98c8fb..0714d4e 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -1323,11 +1323,11 @@ EXTCONST U32 PL_charclass[];
 
 #else /* !USE_NEXT_CTYPE */
 
+#  define _LC_CAST U8
+
 #  if defined(CTYPE256) || (!defined(isascii) && !defined(HAS_ISASCII))
     /* For most other platforms */
 
-#    define _LC_CAST U8
-
 #    define isALPHA_LC(c)   _generic_LC(c, _CC_ALPHA, isalpha)
 #    define isALPHANUMERIC_LC(c)  _generic_LC(c, _CC_ALPHANUMERIC, isalnum)
 #    define isCNTRL_LC(c)    _generic_LC(c, _CC_CNTRL, iscntrl)