in wine 0418, the strupr and strlwr defines were removed from tchar.h does anyone know why? ------------------------------------------------------------ Get your FREE web-based e-mail and newsgroup access at: http://MailAndNews.com Create a new mailbox, or access your existing IMAP4 or POP3 mailbox from anywhere with just a web browser. ------------------------------------------------------------
On Sat, 21 Apr 2001, derek terawaki wrote:> in wine 0418, the strupr and strlwr defines were removed from tchar.h > does anyone know why? >That is what the <wine>/ChangeLog is for, so anyone who wants can know (approximately) why: * include/tchar.h, include/windef.h, include/winnt.h: Francois Gouget <fgouget@free.fr> Prevent multiple definitions caused by MSVCRT headers. Lawson By the accident of what statisticians call birth... - Richard Fari?a ---cut here ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
derek terawaki wrote:> > in wine 0418, the strupr and strlwr defines were removed from tchar.h > does anyone know why?That's because now we have proper msvcrt compatible headers. We don't have them all but strupr and strlwr are now defined in 'msvcrt/string.h'. Defining them in 'tchar.h' was a workaround and thus they have been removed from there. To use the msvcrt headers do the following: * add '-isystem $(WINE_INCLUDE_ROOT)/msvcrt' in your Makefile.in (or in Make.rules.in if you have a large project) * add 'import msvcrt.dll' in your spec file(s), although this is optional as long as the only functions you call are compatible between the Unix libc and msvcrt * currently you should also apply the following patch so as not to include 'winsock.h'. Of course this would be a big problem if your application contains network code. The problem with winsock.h is that it depends on a lot of socket related system headers which causes portability problems between Unix platforms and conflicts with the new msvcrt headers. I'm currently working on making it self-sufficient. --- cut here --- Index: include/windows.h ==================================================================RCS file: /home/wine/wine/include/windows.h,v retrieving revision 1.50 diff -u -r1.50 windows.h --- include/windows.h 2000/12/19 04:51:43 1.50 +++ include/windows.h 2001/04/21 22:26:58 @@ -31,7 +35,9 @@ #include "shellapi.h" /* #include "winperf.h" */ +#ifndef __WINE_CTYPE_H #include "winsock2.h" +#endif /* #include "mswsock.h" */ #ifndef NOCRYPT --- cut here --- -- Fran?ois Gouget fgouget@codeweavers.com