diff liboctave/oct-env.cc @ 6096:40212bfaed1d

[project @ 2006-10-26 01:57:49 by jwe]
author jwe
date Thu, 26 Oct 2006 01:57:50 +0000
parents ace8d8d26933
children 880235733789
line wrap: on
line diff
--- a/liboctave/oct-env.cc
+++ b/liboctave/oct-env.cc
@@ -375,8 +375,8 @@
 {
   std::string hd = do_getenv ("HOME");
 
-#if defined (__MINGW32__)
-  // Maybe we are started directly from cmd.exe
+#if defined (__MINGW32__) || defined (_MSC_VER)
+  // Maybe we are started directly from cmd.exe.
   if (hd.empty ())
     {
       std::string drv = do_getenv ("HOMEDRIVE");