Forráskód Böngészése

2004-03-13 Miguel de Icaza <[email protected]>

	* main.c (create_file_names): Try a few temp directories, since
	Windows uses a different directory naming scheme apparently: #47696

svn path=/trunk/mcs/; revision=23994
Miguel de Icaza 22 éve
szülő
commit
bf3cf481fc
2 módosított fájl, 7 hozzáadás és 0 törlés
  1. 5 0
      mcs/jay/ChangeLog
  2. 2 0
      mcs/jay/main.c

+ 5 - 0
mcs/jay/ChangeLog

@@ -1,3 +1,8 @@
+2004-03-13  Miguel de Icaza  <[email protected]>
+
+	* main.c (create_file_names): Try a few temp directories, since
+	Windows uses a different directory naming scheme apparently: #47696
+
 2004-03-05  Zoltan Varga  <[email protected]>
 
 	* main.c: Applied patch from Albert Strasheim ([email protected]).

+ 2 - 0
mcs/jay/main.c

@@ -263,6 +263,8 @@ create_file_names()
     tmpdir = ".";
 #else
     tmpdir = getenv("TMPDIR");
+    if (tmpdir == 0) tmpdir = getenv ("TMP");
+    if (tmpdir == 0) tmpdir = getenv ("TEMP");
     if (tmpdir == 0) tmpdir = "/tmp";
 #endif