On Wed, Oct 13, 2010 at 10:39 AM, Enlightenment SVN <[email protected]> wrote: > Log: > [Elm_diskpicker] define MAX macro for those (poor Windows > developers) who don't have it > Author: caro > Date: 2010-10-13 06:39:24 -0700 (Wed, 13 Oct 2010) > New Revision: 53355 > > Modified: > trunk/TMP/st/elementary/src/lib/elm_diskpicker.c > > Modified: trunk/TMP/st/elementary/src/lib/elm_diskpicker.c > =================================================================== > --- trunk/TMP/st/elementary/src/lib/elm_diskpicker.c 2010-10-13 13:38:22 > UTC (rev 53354) > +++ trunk/TMP/st/elementary/src/lib/elm_diskpicker.c 2010-10-13 13:39:24 > UTC (rev 53355) > @@ -15,6 +15,10 @@ > #include <Elementary.h> > #include "elm_priv.h" > > +#ifndef MAX > +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) > +#endif > +
What about http://en.wikipedia.org/wiki/C_preprocessor#Multiple_evaluation_of_side_effects ? Do windows have typeof? Lucas De Marchi ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
