Use LLP64 compatible sized-types for LONG and DWORD

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Oct 16 22:26:09 CDT 2004


Yes, it looks heretic at first glance, but we need to do that to support
Win64. MS chose to use the LLP64 (or P64) mode, where sizeof(int) ==
sizeof(long) != sizeof(int *), while Linux (and most other Unix) use the
LP64 mode, where sizeof(int) != sizeof(long).

It'll produce a fair number of warnings, especially from the TRACEs. I
don't know if Alexandre wants to use -Wno-format for a while.

Changelog:
Change the type of LONG and DWORD to be int based instead of long based
for Win64 compatibility.

Vincent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08-types-LLP64.diff
Type: text/x-patch
Size: 2313 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041016/00bbfe64/08-types-LLP64.bin


More information about the wine-patches mailing list