]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxsum.C
remove NO_PEXTRA_STUFF
[lyx.git] / src / support / lyxsum.C
index 9884c93d014b02c215f46eeefd6f14045493eb6e..213298cc0412cf7c4bc642359d6bee7ba69c65b1 100644 (file)
 
 #include <config.h>
 
-#include <algorithm>
-#include <boost/crc.hpp>
-
 #include "support/lyxlib.h"
 #include "debug.h"
 
+#include <algorithm>
+#include <boost/crc.hpp>
+
 using std::endl;
 
 // Various implementations of lyx::sum(), depending on what methods
@@ -32,12 +32,6 @@ using std::endl;
 #include <unistd.h>
 #include <sys/mman.h>
 
-using std::ifstream;
-using std::for_each;
-using std::istreambuf_iterator;
-using std::istream_iterator;
-using std::ios;
-
 
 unsigned long lyx::sum(string const & file)
 {
@@ -76,6 +70,8 @@ unsigned long lyx::sum(string const & file)
 #include <fstream>
 #include <iterator>
 
+using std::for_each;
+
 namespace {
 
 template<typename InputIterator>
@@ -107,6 +103,10 @@ unsigned long lyx::sum(string const & file)
        return do_crc(beg,end);
 }
 #else
+
+using std::istream_iterator;
+using std::ios;
+
 unsigned long lyx::sum(string const & file)
 {
        lyxerr[Debug::FILES]