(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
authorrubidium
Sat, 17 Mar 2007 14:15:21 +0000
changeset 6644 46753e40f3ee
parent 6643 7fad81bde617
child 6645 cf4e1c790280
(svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved).
src/os2.cpp
src/unix.cpp
--- a/src/os2.cpp	Sat Mar 17 11:36:04 2007 +0000
+++ b/src/os2.cpp	Sat Mar 17 14:15:21 2007 +0000
@@ -158,9 +158,6 @@
 
 int CDECL main(int argc, char* argv[])
 {
-	// change the working directory to enable doubleclicking in UIs
-	ChangeWorkingDirectory(argv[0]);
-
 	_random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
 
 	return ttd_main(argc, argv);
--- a/src/unix.cpp	Sat Mar 17 11:36:04 2007 +0000
+++ b/src/unix.cpp	Sat Mar 17 14:15:21 2007 +0000
@@ -14,10 +14,6 @@
 #include <time.h>
 #include <signal.h>
 
-#ifdef USE_HOMEDIR
-#include <pwd.h>
-#endif
-
 #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__)
 	#define HAS_STATVFS
 #endif