Mail Archives: djgpp/1997/02/02/04:23:36
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 -