* os.C: #include "os_win32.h" for _WIN32.

* systemcall.C: The "/n" in "start /min/n" makes no sense under DOS.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9368 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-12-14 12:30:33 +00:00
parent f2240515c7
commit 2237e799ed
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2004-12-14 Angus Leeming <leeming@lyx.org>
* os.C: Add _WIN32 to the #define.
* systemcall.C (startscript): remove trailing '/n' from request to
start the command in a minimized window under DOS.
2004-12-14 Angus Leeming <leeming@lyx.org>
* Makefile.am (INCLUDES): Remove trailing slash from -Ifoo/

View File

@ -2,7 +2,7 @@
#ifdef __EMX__
#include "os_os2.C"
#elif defined(__CYGWIN__) || defined(__CYGWIN32__)
#elif defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(_WIN32)
#include "os_win32.C"
#else
#include "os_unix.C"

View File

@ -28,10 +28,13 @@ int Systemcall::startscript(Starttype how, string const & what)
string command = what;
if (how == DontWait) {
if (os::shell() == os::UNIX) {
switch (os::shell()) {
case os::UNIX:
command += " &";
} else {
command = "start /min/n " + command;
break;
case os::CMD_EXE:
command = "start /min " + command;
break;
}
}