Browse Source

Only include certain boost headers if necessary.

0.8
Jordan Lewis 14 years ago
parent
commit
31f2931281
  1. 1
      src/db.cpp
  2. 12
      src/headers.h
  3. 2
      src/init.cpp
  4. 1
      src/main.cpp
  5. 2
      src/rpc.cpp
  6. 4
      src/ui.cpp
  7. 6
      src/util.cpp
  8. 1
      src/util.h

1
src/db.cpp

@ -5,6 +5,7 @@
#include "headers.h" #include "headers.h"
#include "db.h" #include "db.h"
#include "net.h" #include "net.h"
#include <boost/filesystem/fstream.hpp>
using namespace std; using namespace std;
using namespace boost; using namespace boost;

12
src/headers.h

@ -57,18 +57,6 @@
#include <map> #include <map>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/array.hpp>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/thread.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/program_options/detail/config_file.hpp>
#include <boost/program_options/parsers.hpp>
#ifdef __WXMSW__ #ifdef __WXMSW__
#include <windows.h> #include <windows.h>

2
src/init.cpp

@ -7,6 +7,8 @@
#include "net.h" #include "net.h"
#include "init.h" #include "init.h"
#include "strlcpy.h" #include "strlcpy.h"
#include <boost/filesystem/fstream.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
using namespace std; using namespace std;
using namespace boost; using namespace boost;

1
src/main.cpp

@ -6,6 +6,7 @@
#include "net.h" #include "net.h"
#include "init.h" #include "init.h"
#include "cryptopp/sha.h" #include "cryptopp/sha.h"
#include <boost/filesystem/fstream.hpp>
using namespace std; using namespace std;
using namespace boost; using namespace boost;

2
src/rpc.cpp

@ -11,8 +11,10 @@
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/iostreams/concepts.hpp> #include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp> #include <boost/iostreams/stream.hpp>
#include <boost/algorithm/string.hpp>
#ifdef USE_SSL #ifdef USE_SSL
#include <boost/asio/ssl.hpp> #include <boost/asio/ssl.hpp>
#include <boost/filesystem/fstream.hpp>
typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> SSLStream; typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> SSLStream;
#endif #endif
#include "json/json_spirit_reader_template.h" #include "json/json_spirit_reader_template.h"

4
src/ui.cpp

@ -3,6 +3,10 @@
// file license.txt or http://www.opensource.org/licenses/mit-license.php. // file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h" #include "headers.h"
#include "init.h"
#include "strlcpy.h"
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/convenience.hpp>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <crtdbg.h> #include <crtdbg.h>
#endif #endif

6
src/util.cpp

@ -3,6 +3,12 @@
// file license.txt or http://www.opensource.org/licenses/mit-license.php. // file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h" #include "headers.h"
#include "strlcpy.h" #include "strlcpy.h"
#include <boost/program_options/detail/config_file.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/foreach.hpp>
using namespace std; using namespace std;
using namespace boost; using namespace boost;

1
src/util.h

@ -15,7 +15,6 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <boost/foreach.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp> #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/date_time/gregorian/gregorian_types.hpp> #include <boost/date_time/gregorian/gregorian_types.hpp>

Loading…
Cancel
Save