Re: [AD] Small problem with driver removals |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Peter Wang wrote:I was just wondering if people are using #ifdef's on the driver constants to see if Allegro was built with that driver. Although, that's plain wrong if you're using shared objects or modules.Right. And the docs don't say anything about driver defines not being defined if Allegro's built without support for that driver. Comitted. - Kitty Cat
:-P Turns out Allegro itself does #ifdef checks on the driver constants to see if they need to be built. I changed a bunch of these (#ifdef DIGI_FOO -> #ifdef ALLEGRO_WITH_FOODIGI) but the same problem appears with GFX_VGA and GFX_MODEX (so the ./configure --disable-vga option is broken right now). Changing those #ifdefs would be hairier.
In light of what Allegro was doing, I'd like to revert your changes, Chris. Anyone who wants to refer to a driver constant needs to guard it with an #ifdef.
Peter
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |