]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_win32.C
fix typo that put too many include paths for most people
[lyx.git] / src / support / os_win32.C
index 9e3d1135605a3f6c04e166f6eed704e00e5e9391..8d2b848732bd059772b7132de27b91348f0823cc 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,9 @@ string os::tmpdir_ = string();
 os::shell_type os::_shell = os::UNIX;
 unsigned long os::cp_ = 0;
 
-void os::init(int * argc, char ** argv[]) {
+using std::endl;
+
+void os::init(int * /* argc */, char ** argv[]) {
        static bool initialized = false;
        if (initialized) return;
        initialized = true;
@@ -109,8 +113,15 @@ 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;
 }
+
+// returns a string suitable to be passed to fopen/popen when
+// reading a file
+char const * os::read_mode()
+{
+       return "rb";
+}