eliminate sys/share/pcsys.c from Windows build

Windows build was actually only using a single function
in there, so just add a similar function to sys/winnt/winnt.c
and eliminate the need for including sys/share/pcsys.c in
the build.
This commit is contained in:
nhmall
2018-12-19 06:43:00 -05:00
parent b32c93cacd
commit a2296d043f
5 changed files with 26 additions and 29 deletions

View File

@@ -660,6 +660,26 @@ const char *window_opt;
}
return 0;
}
/*
* Add a backslash to any name not ending in /, \ or : There must
* be room for the \
*/
void
append_slash(name)
char *name;
{
char *ptr;
if (!*name)
return;
ptr = name + (strlen(name) - 1);
if (*ptr != '\\' && *ptr != '/' && *ptr != ':') {
*++ptr = '\\';
*++ptr = '\0';
}
return;
}
#endif /* WIN32 */
/*winnt.c*/