[PD-dev] platform macros __APPLE__, __linux__, etc.

Hans-Christoph Steiner hans at at.or.at
Sun Sep 27 06:43:54 CEST 2009


> Revision: 12447
>          http://pure-data.svn.sourceforge.net/pure-data/?rev=12447&view=rev
> Author:   lluisbigorda
> Date:     2009-09-24 22:11:34 +0000 (Thu, 24 Sep 2009)
>
> Log Message:
> -----------
> The colorspace in Gem-MACOSX is GRAB instead of RGBA in Linux
>
> so added -DDARWIN -DLINUX definitions in the Makefile
>
> Modified Paths:
> --------------
>    trunk/externals/pix_opencv/Makefile
>    trunk/externals/pix_opencv/Makefile.in

Hey Lluis, Yves, and Sergi,

I just saw this commit, y'all really should use the automatically  
defined macros for different OSs rather than making your own.  It  
makes the code more readable and maintainable.  So instead of DARWIN  
use __APPLE__, and instead of LINUX use __linux__.

There is a wiki page to document macros like this:

http://puredata.info/docs/developer/DictionaryOfMacros

.hc

----------------------------------------------------------------------------

Access to computers should be unlimited and total.  - the hacker ethic






More information about the Pd-dev mailing list