* 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/trunk@9367 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-12-14 12:29:53 +00:00
parent 8ac5137961
commit fb28ff9e2a
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 (AM_CPPFLAGS): Remove trailing slash from -Ifoo/

View File

@ -12,7 +12,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

@ -33,10 +33,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;
}
}