[vtk-developers] Guidance needed fixing problems doing 64bit compile on Mac OS X
Sean McBride
sean at rogue-research.com
Thu Oct 26 12:15:03 EDT 2006
On 2006-10-26 11:38, Bill Hoffman said:
>> So, in general (not just for this one bad cast), my questions are:
>>
>> 1) Is it acceptable to change these ints to something bigger?
>> 2) If so, what type? ptrdiff_t? void*?
>>
>> For this particular bad cast, I think we should switch from 'int' to a
>> pointer-sized type because even in vt
>> kWin32RenderWindowInteractor::InternalCreateTimer() it calls the Win32
>> API SetTimer() which expects a UINT_PTR not an INT.
>>
>Strange:
>http://developer.apple.com/macosx/64bit.html
>Seems to imply that this is the same model used by other unix 64 bit
>platforms.
It is. I'm afraid I don't understand how that lead to your 'strange'
remark though...
>However, there are dashboards with win64 and IRIX64 that are working.
>Although the example you give is in Mac specific code, so I would say
>fix the mac specific code, and things should work.
I agree. But fix the code how? I am willing to submit a patch and test
it. But I wanted to check with kitware et al on the preferred fix. As
I said, one fix is to change that int to ptrdiff_t/void*. But that fix
would touch all platforms, not just the Mac, and change the interface
(slightly) to vtkRenderWindowInteractor. Still, I think it's probably
cleaner.
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtk-developers
mailing list