strupr, strlwr

François Gouget fgouget at codeweavers.com
Sun Apr 22 00:20:50 CDT 2001


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 at codeweavers.com



More information about the wine-users mailing list