compilation fix from Kayvan

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3257 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-12-20 16:27:02 +00:00
parent a9259a595c
commit 96dd1ba64c
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-12-20 Kayvan A. Sylvan <kayvan@sylvan.com>
* os_win32.C: compilation fixes
2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lstrings.h: do not include <cctype>

View File

@ -5,6 +5,8 @@
#include "os.h"
#include "support/filetools.h"
#include "support/lstrings.h"
#include "debug.h"
#include <windows.h>
#include <io.h>
@ -17,7 +19,7 @@ string os::tmpdir_ = string();
os::shell_type os::_shell = os::UNIX;
unsigned long os::cp_ = 0;
void os::init(int * argc, char ** argv[]) {
void os::init(int * /* argc */, char ** argv[]) {
static bool initialized = false;
if (initialized) return;
initialized = true;
@ -109,8 +111,8 @@ bool os::is_absolute_path(string const & p)
if (p.empty())
return false;
bool isDosPath = (path.length() > 1 && path[1] == ':');
bool isUnixPath = (path[0] == '/');
bool isDosPath = (p.length() > 1 && p[1] == ':');
bool isUnixPath = (p[0] == '/');
return isDosPath | isUnixPath;
}