1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
6 #pragma warning(disable:4786)
7 #pragma warning(disable:4804)
8 #pragma warning(disable:4805)
9 #pragma warning(disable:4717)
14 #define _WIN32_WINNT 0x0500
18 #define _WIN32_IE 0x0400
19 #define WIN32_LEAN_AND_MEAN 1
20 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
21 #if (defined(__unix__) || defined(unix)) && !defined(USG)
22 #include <sys/param.h> // to get BSD define
31 #include <wx/stdpaths.h>
32 #include <wx/snglinst.h>
34 #include <wx/clipbrd.h>
35 #include <wx/taskbar.h>
37 #include <openssl/buffer.h>
38 #include <openssl/ecdsa.h>
39 #include <openssl/evp.h>
40 #include <openssl/rand.h>
41 #include <openssl/sha.h>
42 #include <openssl/ripemd.h>
62 #include <boost/foreach.hpp>
63 #include <boost/lexical_cast.hpp>
64 #include <boost/tuple/tuple.hpp>
65 #include <boost/tuple/tuple_comparison.hpp>
66 #include <boost/tuple/tuple_io.hpp>
67 #include <boost/array.hpp>
68 #include <boost/bind.hpp>
69 #include <boost/function.hpp>
70 #include <boost/filesystem.hpp>
71 #include <boost/filesystem/fstream.hpp>
72 #include <boost/algorithm/string.hpp>
73 #include <boost/thread.hpp>
74 #include <boost/interprocess/sync/file_lock.hpp>
75 #include <boost/interprocess/sync/interprocess_mutex.hpp>
76 #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
77 #include <boost/date_time/gregorian/gregorian_types.hpp>
78 #include <boost/date_time/posix_time/posix_time_types.hpp>
79 #include <boost/config.hpp>
80 #include <boost/program_options/detail/config_file.hpp>
81 #include <boost/program_options/parsers.hpp>
94 #include <sys/resource.h>
95 #include <sys/socket.h>
97 #include <arpa/inet.h>
107 #include <netinet/in.h>
113 using namespace boost
;
116 #include "serialize.h"
136 #include "xpm/addressbook16.xpm"
137 #include "xpm/addressbook20.xpm"
138 #include "xpm/bitcoin16.xpm"
139 #include "xpm/bitcoin20.xpm"
140 #include "xpm/bitcoin32.xpm"
141 #include "xpm/bitcoin48.xpm"
142 #include "xpm/bitcoin80.xpm"
143 #include "xpm/check.xpm"
144 #include "xpm/send16.xpm"
145 #include "xpm/send16noshadow.xpm"
146 #include "xpm/send20.xpm"
147 #include "xpm/about.xpm"