www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/21/10:03:27

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: EOF Redefined in Allegro
Date: Sun, 21 Sep 1997 09:17:40 +0100
Organization: None
Distribution: world
Message-ID: <yY9PyIAkgNJ0Ew2V@talula.demon.co.uk>
References: <342480F8 DOT 5BAC5128 AT rpi DOT edu>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019