1 // Copyright (c) 2009-2010 Satoshi Nakamoto
\r
2 // Distributed under the MIT/X11 software license, see the accompanying
\r
3 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
\r
6 #pragma warning(disable:4786)
\r
7 #pragma warning(disable:4804)
\r
8 #pragma warning(disable:4805)
\r
9 #pragma warning(disable:4717)
\r
14 #define _WIN32_WINNT 0x0400
\r
18 #define _WIN32_IE 0x0400
\r
19 #define WIN32_LEAN_AND_MEAN 1
\r
20 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
\r
22 #include <wx/stdpaths.h>
\r
23 #include <wx/snglinst.h>
\r
25 #include <wx/utils.h>
\r
26 #include <wx/clipbrd.h>
\r
27 #include <wx/taskbar.h>
\r
29 #include <openssl/ecdsa.h>
\r
30 #include <openssl/evp.h>
\r
31 #include <openssl/rand.h>
\r
32 #include <openssl/sha.h>
\r
33 #include <openssl/ripemd.h>
\r
50 #include <algorithm>
\r
52 #include <boost/foreach.hpp>
\r
53 #include <boost/lexical_cast.hpp>
\r
54 #include <boost/tuple/tuple.hpp>
\r
55 #include <boost/tuple/tuple_comparison.hpp>
\r
56 #include <boost/tuple/tuple_io.hpp>
\r
57 #include <boost/array.hpp>
\r
58 #include <boost/bind.hpp>
\r
59 #include <boost/function.hpp>
\r
60 #include <boost/filesystem.hpp>
\r
61 #include <boost/filesystem/fstream.hpp>
\r
62 #include <boost/algorithm/string.hpp>
\r
63 #include <boost/interprocess/sync/interprocess_mutex.hpp>
\r
64 #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
\r
65 #include <boost/date_time/gregorian/gregorian_types.hpp>
\r
66 #include <boost/date_time/posix_time/posix_time_types.hpp>
\r
69 #include <windows.h>
\r
70 #include <winsock2.h>
\r
71 #include <mswsock.h>
\r
73 #include <shlwapi.h>
\r
75 #include <process.h>
\r
78 #include <sys/time.h>
\r
79 #include <sys/resource.h>
\r
80 #include <sys/socket.h>
\r
81 #include <arpa/inet.h>
\r
86 #include <ifaddrs.h>
\r
89 #include <netinet/in.h>
\r
94 using namespace std;
\r
95 using namespace boost;
\r
97 #include "strlcpy.h"
\r
98 #include "serialize.h"
\r
99 #include "uint256.h"
\r
102 #include "bignum.h"
\r
103 #include "base58.h"
\r
104 #include "script.h"
\r
111 #include "uibase.h"
\r
116 #include "xpm/addressbook16.xpm"
\r
117 #include "xpm/addressbook20.xpm"
\r
118 #include "xpm/bitcoin16.xpm"
\r
119 #include "xpm/bitcoin20.xpm"
\r
120 #include "xpm/bitcoin32.xpm"
\r
121 #include "xpm/bitcoin48.xpm"
\r
122 #include "xpm/bitcoin80.xpm"
\r
123 #include "xpm/check.xpm"
\r
124 #include "xpm/send16.xpm"
\r
125 #include "xpm/send16noshadow.xpm"
\r
126 #include "xpm/send20.xpm"
\r
127 #include "xpm/about.xpm"
\r