use UNAME if you also want to differentiate between Linux and Mac, otherwise 
IFWIN or IFUNIX is good enough.


Чтв, 30 Дек 2010, Tikkanz писал(а):
> IFUNIX is available which is 1 on Linux & Mac and 0 on Windows
> 
> IFWIN replaces IFWIN32 in J701 and I think has been back-ported to J602 too.
> 
> I think UNAME reports the following on the different platforms:
> 
> Windows: Win
> Linux:   Linux
> Mac:     Darwin
> 
> Ric
> 
> On Thu, Dec 30, 2010 at 11:42 AM, Charles Turner <[email protected]> 
> wrote:
> > Hi-
> >
> > I'm updating the gnuplot code to work on j701, and I think I'm getting 
> > control errors because of the use of IFWIN32.
> >
> > Is something like UNAME-:'Linux' the approved way to test for the 
> > underlying system? (ie, the substitute for IFWIN32?)
> >
> > If so, how do I test for Windows? UNAME-:'Windows' ?
> >
> > Thanks! Charles
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to