diff options
author | YamaArashi <shadow962@live.com> | 2016-02-11 08:49:26 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-11 08:49:26 -0800 |
commit | e58748cc8494d3df2d83435078e5615641ddd9da (patch) | |
tree | 949415b2422cf7cec8275a2efe0c93cf3d3aa1b6 /gcc/getpwd.c | |
parent | 94d504a89ab27e7cf0460f29a12865e8fddf8659 (diff) |
remove VMS stuff
Diffstat (limited to 'gcc/getpwd.c')
-rwxr-xr-x | gcc/getpwd.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c index c3d155e..3547bc8 100755 --- a/gcc/getpwd.c +++ b/gcc/getpwd.c @@ -7,19 +7,19 @@ BSD systems) now provides getcwd as called for by POSIX. Allow for the few exceptions to the general rule here. */ -#if !(defined (POSIX) || defined (USG) || defined (VMS)) || defined (HAVE_GETWD) +#if !(defined (POSIX) || defined (USG) ) || defined (HAVE_GETWD) #define getcwd(buf,len) getwd(buf) #ifdef MAXPATHLEN #define GUESSPATHLEN (MAXPATHLEN + 1) #else #define GUESSPATHLEN 100 #endif -#else /* (defined (USG) || defined (VMS)) */ +#else /* (defined (USG)) */ /* We actually use this as a starting point, not a limit. */ #define GUESSPATHLEN 100 -#endif /* (defined (USG) || defined (VMS)) */ +#endif /* (defined (USG)) */ -#if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__))) +#if !( defined(_WIN32) && !defined(__CYGWIN__)) /* Get the working directory. Use the PWD environment variable if it's set correctly, since this is faster and gives more uniform answers @@ -67,7 +67,7 @@ getpwd () return p; } -#else /* VMS || _WIN32 && !__CYGWIN__ */ +#else /* _WIN32 && !__CYGWIN__ */ #ifndef MAXPATHLEN #define MAXPATHLEN 255 @@ -80,11 +80,8 @@ getpwd () if (!pwd) pwd = getcwd (xmalloc (MAXPATHLEN + 1), MAXPATHLEN + 1 -#ifdef VMS - , 0 -#endif ); return pwd; } -#endif /* VMS || _WIN32 && !__CYGWIN__ */ +#endif /* _WIN32 && !__CYGWIN__ */ |