Mail Archives: djgpp/1997/09/21/10:03:27
Brian Osman writes:
>I haven't had any trouble yet, but when I include stdio.h and allegro.h,
>I get errors about EOF being declared twice. (In stdio.h as always, and
>in allegro.h) I'm guessing they're both defined to the same thing (I
>should go check.) but I'm wondering why it's defined in there. (As
>opposed to including stdio.h)
It's there for historical reasons, to avoid breaking some really old
programs that dated from the time when the file compression routines
were a replacement for, rather than addition to, the stdio functions. To
avoid the warning, just include stdio.h before allegro.h...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -