Re: [AD] Allegro 4.2 doesn't compile under OpenWatcom 1.0 |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Elias Pschernig wrote:
Oops, my fault. Fixed in CVS. I had put in LOCK_VARIABLE(midi_timer_frequency) with the midi_length patch, then later removed the variable again. As this only shows up under DOS based compilers, I didn't notice it.
Perhaps to fix problems like this, we should define LOCK_VARIABLE/FUNCTION(x) to ((void)x), if it wasn't already defined by the platform. This will cause the variable to be referenced, and cause an error if it doesn't exist, but also compile to nothing. The LOCK_FUNCTION MACRO would need to (void)x##_end (or whatever it is) as well, lest we let slip by some functions that weren't END_OF_FUNCTION'd.
Though since this all going away in 4.3, it may not be worth it.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |