Re: Prevent the use of windowsx.h with Wine source.

2006-03-20 Thread Alexandre Julliard
"Martin Fuchs" <[EMAIL PROTECTED]> writes: > Just one random example out of the committed Winefile patch: > > - int idx = ListBox_AddString(hlbox, infoStr); > - ListBox_SetItemData(hlbox, idx, pTxt); > + int idx = SendMessage(hlbox, LB_ADDSTRING, 0L, (LPARAM)infoStr); > + SendMessage(hlbox, LB_SET

Re: Prevent the use of windowsx.h with Wine source.

2006-03-19 Thread Martin Fuchs
2006/3/19, Alexandre Julliard <[EMAIL PROTECTED]>: > I think these windowsx macros are confusing things more than helping, > especially since they don't look like macros. It's better to have > explicit SendMessage calls than some pseudo function calls, it makes > much more obvious what's going on,

Re: Prevent the use of windowsx.h with Wine source.

2006-03-19 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > It seemed to be ignored by both you and Alexandre last time it was > sent, and all of your patches applied anyway despite objections from > several developers. I think these windowsx macros are confusing things more than helping, especially since they

Re: Prevent the use of windowsx.h with Wine source.

2006-03-19 Thread Mike McCormack
Robert Shearman wrote: We're trying to work around GCC warnings that probably aren't generated > using any other compiler so using non-portable C > constructs is perfectly fine. Here is Francois' solution again: I understand Francois's solution, as I mentioned that the gcc guys proposed it i

Re: Prevent the use of windowsx.h with Wine source.

2006-03-19 Thread Robert Shearman
Mike McCormack wrote: Robert Shearman wrote: Why don't we fix the macros as suggested by Francois, rather than preventing its use? It seems like a big waste of time to have submitted all of the patches to the files using windowsx.h when fixing the macros is necessary for Winelib anyway. No

Re: Prevent the use of windowsx.h with Wine source.

2006-03-18 Thread Mike McCormack
Robert Shearman wrote: Why don't we fix the macros as suggested by Francois, rather than preventing its use? It seems like a big waste of time to have submitted all of the patches to the files using windowsx.h when fixing the macros is necessary for Winelib anyway. No, it's not a waste of tim

Re: Prevent the use of windowsx.h with Wine source.

2006-03-18 Thread Jacek Caban
Robert Shearman wrote: > Mike McCormack wrote: > > >> +#ifdef __WINESRC__ >> +/* This file contains macros that cause warnings on gcc 4.1, so avoid it. */ >> +#error Please avoid use of windowsx.h in Wine source code. >> +#endif >> + >> >> > > Why don't we fix the macros as suggested by Fr

Re: Prevent the use of windowsx.h with Wine source.

2006-03-18 Thread Robert Shearman
Mike McCormack wrote: >+#ifdef __WINESRC__ >+/* This file contains macros that cause warnings on gcc 4.1, so avoid it. */ >+#error Please avoid use of windowsx.h in Wine source code. >+#endif >+ > Why don't we fix the macros as suggested by Francois, rather than preventing its use? It seems like