From: Angus Leeming Date: Wed, 8 Oct 2003 08:38:05 +0000 (+0000) Subject: A couple of using std::string declarations from Kayvan. X-Git-Tag: 1.6.10~15988 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=372a70b8fd655503cd116450bf99bdc941031308;p=features.git A couple of using std::string declarations from Kayvan. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7878 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/lyxsum.C b/src/support/lyxsum.C index 22ddf19d51..c5c88a5c5a 100644 --- a/src/support/lyxsum.C +++ b/src/support/lyxsum.C @@ -18,6 +18,9 @@ using std::endl; +using std::string; + + // OK, this is ugly, but it is the only workaround I found to compile // with gcc (any version) on a system which uses a non-GNU toolchain. // The problem is that gcc uses a weak symbol for a particular @@ -42,9 +45,6 @@ template class boost::detail::crc_table_t<32, 0x04C11DB7, true>; #include -using std::string; - - unsigned long lyx::support::sum(string const & file) { lyxerr[Debug::FILES] << "lyx::sum() using mmap (lightning fast)" diff --git a/src/support/os_win32.C b/src/support/os_win32.C index 6b57494699..37dc599947 100644 --- a/src/support/os_win32.C +++ b/src/support/os_win32.C @@ -23,6 +23,7 @@ using namespace lyx::support; using std::endl; +using std::string; namespace {