Date: Tue, 11 Feb 1997 09:31:54 +0200 (IST) From: Eli Zaretskii To: Andy Eskilsson cc: djgpp AT delorie DOT com Subject: Re: Detecting longfilename support.. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 10 Feb 1997, Andy Eskilsson wrote: > Is it possible, during runtime, to detect if long filenames is > supported (the LFN=y is set in the djgpp.env file) Testing for LFN=y in the environment is not enough to know whether LFN is supported. You can set LFN=y on plain DOS and not get long filenames; or you could forget to LFN=y on Windows 95 and still get long filenames supported. The macro `_USE_LFN' (defined on ) returns 1 if you can use long filenames, 0 otherwise. The macro and the function it calls are documented in the DJGPP libc docs under `_use_lfn'.