message: Process: code cleanup.
diff: #include <string>
  #include <unordered_map>
  -#if !defined(_MSC_VER)
  +#if !defined(_WIN32)
  #include <utmp.h>
  #include <pwd.h>
  #include <sys/types.h>
  using namespace std;
  +namespace terminal {
  +
  namespace {
  string getLastErrorAsString()
  {
  @@ -70,18 +72,6 @@ namespace {
  }
  #if defined(_WIN32)
  - terminal::Process::Environment currentEnvBlock()
  - {
  - auto const out = terminal::Process::Environment{};
  - auto env = GetEnvironmentStrings();
  - while (env)
  - {
  - auto cstr = env;
  - auto slen = strlen(cstr);
  - env += slen + 1;
  - }
  - return out;
  - }
  class InheritingEnvBlock {
  public:
  using Environment = terminal::Process::Environment;
  @@ -115,12 +105,7 @@ namespace {
  };
  #endif
  -} // anonymous namespace
  -
  -namespace terminal {
  -
  -#if defined(_MSC_VER)
  -namespace {
  + #if defined(_WIN32)
  HRESULT initializeStartupInfoAttachedToPTY(STARTUPINFOEX& _startupInfoEx, PseudoTerminal& _pty)
  {
  // Initializes the specified startup info struct with the required properties and
  @@ -160,10 +145,10 @@ namespace {
  }
  return hr;
  }
  -} // anonymous namespace
  #endif
  +} // anonymous namespace
  -#if !defined(_MSC_VER)
  +#if !defined(_WIN32)
  static termios getTerminalSettings(int fd)
  {
  termios tio;
  @@ -424,7 +409,7 @@ Process::ExitStatus Process::wait()
  std::string Process::loginShell()
  {
  -#if defined(_MSC_VER)
  +#if defined(_WIN32)
  return "powershell.exe"s;
  #else
  if (passwd const* pw = getpwuid(getuid()); pw != nullptr)
  