[Openal-devel] Platform-based #ifdefs in cross-platform projects

Sven Panne Sven.Panne at aedion.de
Sat Sep 10 06:03:24 PDT 2005


FYI: While once again trying to fix some evil #ifdefs in one of the OpenSource 
projects I'm involved in, I decided to write down how to use platform-based 
#ifdefs in the least painful way, mostly as an aid for my small brain:  :-)

   http://aedion.de/programming/using-cpp-definitions/

Probably this is a blinding flash of the obvious for most OpenSource people, 
but this can be summarised as follows: Use platform-based #ifdefs only when 
you absolutely must, they are highly fragile. Feature-based tests are the way 
to go...

Corrections/additions/comments are, as always, highly welcome.

Cheers,
   S.



More information about the Openal-devel mailing list