freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] Re: djgpp and uppercase vs. lowercase file names


From: Werner LEMBERG
Subject: Re: [Devel] Re: djgpp and uppercase vs. lowercase file names
Date: Sun, 21 Nov 2004 14:54:21 +0100 (CET)

> > Currently, we test for Windows NT by checking the `OS' environment
> > variable whether it contains `Windows_NT'.
> >
> > We check for win32 by testing whether COMSPEC is defined and the
> > output of the `ver' program contains the string `Windows'.
> 
> But that would include DOS-based (i.e. not Win32) versions of
> Windows like 3.1.

Any idea how to handle this gracefully?

BTW, we test for DOS as follows:

  . Check DJGPP.  If set, platform is DOS.

  . Check COMSPEC.  If set, run `ver' and check its output for `Dos',
    `DOS', or `MDOS\COMMAND' (this is OS/2).

The order of the platform detection tests isn't predictable, so the
tests must be self-contained.  Anyway, it's not a great problem if the
automatic platform recognition fails since it can be overridden
easily.

> But you *can* check the existence of %windir%\system32\cmd.exe and
> use it if you find it (or is it better to use
> %SystemRoot%\system32\cmd.exe instead?).

Is %windir% and %SystemRoot% always defined?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]