Warning on Alpha Linux

Steven Edwards steven_ed4153 at yahoo.com
Sat Jul 19 22:02:59 CDT 2003


--- Dmitry Timoshkov <dmitry at baikal.ru> wrote:
> > Other way round.  sizeof(int) == 4; sizeof(void *) == 8.
> 
> In that case Wine needs to be compiled with _WIN64 macro defined.
> In that case WPARAM and LPARAM will have correct size as well. But
> be warned that compiling for Win64 is a completely unexplored terrain.
> 
> > : gcc is kind enough to warn you about this potentially nasty situation,
> > : although in these particular cases I don't see how putting the pointer
> > : in something larger will create a problem.
> > 
> > Use intptr_t.  If that's not available (via autoconf test), typedef intptr_t
> > to be "unsigned long" locally, as "long" is the size of a pointer on all
> > typical ILP32 and LP64 hosts.
> 
> In Wine we have to use UINT_PTR, ULONG_PTR, DWORD_PTR for casting pointer
> to an integer type. These macros have correct behaviour on Win32 and Win64.

So if I define the _WIN64 macro for AXP all of the *_PTR should be ok right? I will submit a patch
for this in short order.

I have this Alpha that HP loaned us for ReactOS but I have never been able to build a current
gcc/binutils that build for a alpha-pe target. I figure while I still have it then I will work on
getting WINE working. Anyone know AXP assembly interested in helping with the port? I will put it
on the net with SSH if anyone wants to play with it.

Thanks
Steven

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the wine-devel mailing list