1998-12-05 Ulrich Drepper <drepper@cygnus.com>
- * wctype/wctype.h (_ISwbit): Protext use of parameter with
+ * ctype/ctype.h (_ISbit): Protect use of parameter with
parentheses.
+ * wctype/wctype.h (_ISwbit): Likewise.
* locale/Versions: Make experimental locale interface available in
GLIBC_2.1.
-/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
# include <endian.h>
# if __BYTE_ORDER == __BIG_ENDIAN
-# define _ISbit(bit) (1 << bit)
+# define _ISbit(bit) (1 << (bit))
# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
-# define _ISbit(bit) (bit < 8 ? ((1 << bit) << 8) : ((1 << bit) >> 8))
+# define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8))
# endif
enum