Re: [AD] Fix dat2c for use with ISO C90 compilers

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tue, 2003-05-13 at 15:41, Eric Botcazou wrote:
> There is one remaining problem though: dat2c has a sophisticated mechanism 
> for handling the different line endings (DOS, Unix, Mac) but it doesn't 
> correctly detect the native line ending of the platform it runs on, contrary 
> to what is advertised. It naturally relies on Allegro's os_type to do so; 
> unfortunately, os_type is not set when passing SYSTEM_NONE as the system 
> driver so we always end up with DOS line ending...
Can't the macros ALLEGRO_UNIX, ALLEGRO_WINDOWS etc. be used instead of
os_type to detect the desired lineendings?
/C






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/