Re: Multi-OS API Question

2011-06-03 Thread Ken Thomases
On Jun 3, 2011, at 6:57 PM, Heizer, Charles wrote: > I'm using some API's which are only available on 10.5 and above but I want to > compile my app to run on 10.4 and higher. How can I include multiple bits of > code so that if the system is running 10.4 it will run "Code A" and if 10.5 > and h

Multi-OS API Question

2011-06-03 Thread Heizer, Charles
Hello, I'm using some API's which are only available on 10.5 and above but I want to compile my app to run on 10.4 and higher. How can I include multiple bits of code so that if the system is running 10.4 it will run "Code A" and if 10.5 and higher run "Code B"? Example if ( os == 104 ) {