delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/02/04:23:36

Date: Sun, 2 Feb 1997 11:12:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Some Allegro and other questions.
In-Reply-To: <is+LMUA87y8yEwXp@talula.demon.co.uk>
Message-ID: <Pine.SUN.3.91.970202110824.23888Y-100000@is>
MIME-Version: 1.0

On Sat, 1 Feb 1997, Shawn Hargreaves wrote:

> I think this macro was added in djgpp 2.01, so it won't be declared in
> your headers. Question for the experts: am I right in thinking that if I
> include <libc/dosio.h> and call _use_lfn(NULL), it will compile with
> both djgpp 2.0 and 2.01?

No.  You should include both <libc/dosio.h> and <fcntl.h> and call
_USE_LFN.  Actually, all headers in include/libc should be for compiling
the library only, but it turns out that _USE_LFN is useful for 
applications also, so it was moved into <fcntl.h> in v2.01.

I would also advise against including LFN-related features in 
v2.0-compiled programs, since LFN support in v2.0 has subtle bugs.  It is 
better IMHO to say that LFN isn't supported unless you upgrade to v2.01; 
if you do that, you can get rid of <libc/dosio.h> altogether.

- Raw text -


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