[PATCH 5/7] winapi_test: '* long *' is 4 bytes, not pointer size.

Francois Gouget fgouget at free.fr
Fri Aug 7 05:11:38 CDT 2020


On Sat, 25 Jul 2020, Serge Gautherie wrote:
[...]
> winapi_test: '* long *' is 4 bytes, not pointer size.
> Fix _WIN64 case.

That depends. Wine used to be entirely compiled with gcc and there long 
is pointer sized. Now parts of it are compiler with MinGW and there long 
is always 4 bytes.

What this means is that long should really not be used in Wine's windows 
headers (except some rare cases) otherwise we lose compatibility with 
gcc.

But maybe your concern is to get winapi_test to work on the Windows 
headers? I guess for that use case the patch can make sense but then it 
should be documented in the code.


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
      Sufficently advanced incompetence is indistinguishable from malice.



More information about the wine-devel mailing list