]> git.lyx.org Git - features.git/commitdiff
compilation fix from Kayvan
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 20 Dec 2001 16:27:02 +0000 (16:27 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 20 Dec 2001 16:27:02 +0000 (16:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3257 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/os_win32.C

index f6d967a27aacd00a8d2b5f469b3f95726c9781ab..e7af7d2147b5fac4df5884a930a42659fdadb5f2 100644 (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>
index 9e3d1135605a3f6c04e166f6eed704e00e5e9391..c0b13e16b570e00093533578d892ddacc6a6efd5 100644 (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;
 }