using std::endl;
using std::ifstream;
+#if 0
+using std::getenv;
+using std::isalpha;
+using std::isalnum;
+using std::popen;
+#endif
+
extern string system_lyxdir;
extern string build_lyxdir;
extern string user_lyxdir;
string const GetEnv(string const & envname)
{
// f.ex. what about error checking?
- char const * const ch = ::getenv(envname.c_str());
+ char const * const ch = getenv(envname.c_str());
string const envstr = !ch ? "" : ch;
return envstr;
}
// checks for already absolute path
if (AbsolutePath(RelPath))
#ifdef __EMX__
- if(RelPath[0]!= '/' && RelPath[0]!= '\\')
+ if (RelPath[0]!= '/' && RelPath[0]!= '\\')
#endif
return RelPath;
if (ifs && ofs) {
ofs << ifs.rdbuf();
ifs.close();
- return ofs.str();
+ return ofs.str().c_str();
}
}
lyxerr << "LyX was not able to read file '" << fname << "'" << endl;