PATCH: wint_t for mingw32 target

Danny Smith danny_r_smith_2001@yahoo.co.nz
Sat Mar 23 16:53:00 GMT 2002


This patch makes  wint_t consistent between GCC and the msvcrt.dll
C runtime that mingw32 uses.  Although, the default size of unsigned
int has caused no reported problems with runtime in past, it could cause
alignment incompatability in structures with wint_t members.

Tested on i586-pc-mingw32.

OK for trunk?


2002-03-24  Danny Smith  <dannysmith@sourceforge.users.net>

	* config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
	int".


Index: mingw32.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/mingw32.h,v
retrieving revision 1.22
diff -r1.22 mingw32.h
112a113,115
> /* Define  as short unsigned for compatability with MS-compiled code. */
>  #undef WINT_TYPE
>  #define WINT_TYPE "short unsigned int"

http://www.sold.com.au - SOLD.com.au Auctions
- 1,000s of Bargains!



More information about the Gcc-patches mailing list