Mercurial > octave
diff liboctave/oct-env.cc @ 4093:5a82e874999b
[project @ 2002-10-08 23:48:45 by jwe]
author | jwe |
---|---|
date | Tue, 08 Oct 2002 23:48:46 +0000 |
parents | f70ce9baacd3 |
children | 596f88296519 |
line wrap: on
line diff
--- a/liboctave/oct-env.cc Mon Oct 07 16:13:22 2002 +0000 +++ b/liboctave/oct-env.cc Tue Oct 08 23:48:46 2002 +0000 @@ -40,7 +40,9 @@ #include <config.h> #endif +#include <cctype> #include <cstdlib> + #include <string> #ifdef HAVE_UNISTD_H @@ -249,7 +251,7 @@ if (s[0] == '/') return true; -#if defined (__CYGWIN__) +#if defined (__WIN32__) if ((len == 2 && isalpha (s[0]) && s[1] == ':') || (len > 2 && isalpha (s[0]) && s[1] == ':' && is_dir_sep (s[2]))) return true;