That's not a nice solution at all. :| It would be much better to have a typedef so the type will remain the same, and just change the typedef according to GNU detected or not. Having enums there has the nice advantage of being able to print the value in gdb and get the enum string instead of the int value.
-- Tom. On 27/12/13 03:07, Dennis Schridde wrote: > cedric pushed a commit to branch master. > > http://git.enlightenment.org/core/efl.git/commit/?id=bf9c3aad245dbeeb5877751bf1a42c89f0c6b23a > > commit bf9c3aad245dbeeb5877751bf1a42c89f0c6b23a > Author: Dennis Schridde <[email protected]> > Date: Fri Dec 27 12:06:30 2013 +0900 > > eina: struct _Eina_Rbtree contains an enum bitfield, which is a GNU > extension not specified by C99. > > Reviewers: barbieri, raster, cedric > > Reviewed By: cedric > > CC: cedric > > Differential Revision: https://phab.enlightenment.org/D412 > > Signed-off-by: Cedric BAIL <[email protected]> > --- > src/lib/eina/eina_rbtree.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/lib/eina/eina_rbtree.h b/src/lib/eina/eina_rbtree.h > index e8bcc65..6a4d764 100644 > --- a/src/lib/eina/eina_rbtree.h > +++ b/src/lib/eina/eina_rbtree.h > @@ -82,7 +82,7 @@ struct _Eina_Rbtree > { > Eina_Rbtree *son[2]; > > - Eina_Rbtree_Color color : 1; > + unsigned int color : 1; > }; > > /** > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
