This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: wint_t for mingw32 target


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]