From: Markus R. <rol...@un...> - 2008-03-24 20:43:02
|
Hi, Joschka Boedecker wrote: > On Mar 24, 2008, at 3:19 PM, Yuan Xu wrote: [...] > * I had conflicting typedefs in /usr/local/include/ode/config.h and a > system header (again, this was no problem in Tiger). I didn't know an > elegant workaround for the problem right away, so I had to comment out > the 'typedef unsigned short uint32' in the ODE config header; this > way, the code compiles, but this hack is -- of course -- not > satisfactory :-( Does anybody have a good idea how to prevent this > conflict? If the problem is caused by #defines then updating the physicsserver/odewrapper.h for MacOS is the right place to put the fix. A typedef in the ode config file can not be modified directly via the preprocessor. But you could rename the offending typedef via the preprocessor like '#define uint32 dummy' in the odewrapper before inlcuding ode.h (be sure to undefine uint32 after the include) I have some more #defines and typedef prepared that are necessary for the win32 port and add to the preproccessor fun... I'll wait with these commits until after the release. cheers, Markus |