2007-12-13, 01:39
elan Wrote:By the way, I've been treating the OS X target as sort of a sub-port of Linux, so I leave _LINUX defined and then do...Yeah, I'm all for it. Actually even today there are places that should not have _LINUX . I think that adding OSX support will be a compelling event to get that #define fixed.
#ifdef __APPLE__
...
#endif
...since OS X is pretty much UNIX. In the long term, it may make sense to define something like _UNIX at the high level and then #ifdef for LINUX, OS X, etc.
I hope this is alright, it certainly made the port easier, but please let me know if this isn't seen as the right way of doing things. Where it made sense I have whole new subclasses for things (like the PortAudio player) that live alongside the Linux and Windows ones.
Anyway, I want to get my changes merged into the branch as soon as possible. I need to do a bit more work and get things working better first.
Can you elaborate a bit on what's working for you in the apple port and what requires more work?
-Yuval