* and: Thomas E. Dickey 1996-on *
****************************************************************************/
-/* $Id: curses.h.in,v 1.204 2009/07/18 16:02:07 tom Exp $ */
+/* $Id: curses.h.in,v 1.205 2009/08/29 18:33:18 tom Exp $ */
#ifndef __NCURSES_H
#define __NCURSES_H
#if !NCURSES_OPAQUE
#if defined(_XOPEN_SOURCE_EXTENDED) && @NCURSES_EXT_COLORS@
#define wattrset(win,at) ((win)->_color = PAIR_NUMBER(at), \
- NCURSES_CAST(int, (win)->_attrs = (at)))
+ (win)->_attrs = (at), \
+ NCURSES_CAST(int, (win)->_attrs))
#else
-#define wattrset(win,at) NCURSES_CAST(int, (win)->_attrs = (at))
+#define wattrset(win,at) ((win)->_attrs = (at), \
+ NCURSES_CAST(int, (win)->_attrs))
#endif
#endif /* NCURSES_OPAQUE */