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/clipbrd.h>
\r
23 #include <wx/snglinst.h>
\r
24 #include <wx/taskbar.h>
\r
25 #include <wx/stdpaths.h>
\r
26 #include <wx/utils.h>
\r
27 #include <openssl/ecdsa.h>
\r
28 #include <openssl/evp.h>
\r
29 #include <openssl/rand.h>
\r
30 #include <openssl/sha.h>
\r
31 #include <openssl/ripemd.h>
\r
46 #include <algorithm>
\r
48 #include <boost/foreach.hpp>
\r
49 #include <boost/lexical_cast.hpp>
\r
50 #include <boost/tuple/tuple.hpp>
\r
51 #include <boost/tuple/tuple_comparison.hpp>
\r
52 #include <boost/tuple/tuple_io.hpp>
\r
53 #include <boost/array.hpp>
\r
54 #include <boost/bind.hpp>
\r
55 #include <boost/function.hpp>
\r
58 #include <windows.h>
\r
59 #include <winsock2.h>
\r
60 #include <mswsock.h>
\r
62 #include <shlwapi.h>
\r
64 #include <process.h>
\r
67 #include <sys/time.h>
\r
68 #include <sys/resource.h>
\r
69 #include <sys/socket.h>
\r
70 #include <arpa/inet.h>
\r
75 #include <ifaddrs.h>
\r
76 #include <boost/filesystem.hpp>
\r
77 #include <boost/algorithm/string.hpp>
\r
80 #include <netinet/in.h>
\r
85 using namespace std;
\r
86 using namespace boost;
\r
90 #include "strlcpy.h"
\r
91 #include "serialize.h"
\r
92 #include "uint256.h"
\r
102 #include "market.h"
\r
103 #include "uibase.h"
\r
106 #include "xpm/addressbook16.xpm"
\r
107 #include "xpm/addressbook20.xpm"
\r
108 #include "xpm/bitcoin16.xpm"
\r
109 #include "xpm/bitcoin20.xpm"
\r
110 #include "xpm/bitcoin32.xpm"
\r
111 #include "xpm/bitcoin48.xpm"
\r
112 #include "xpm/check.xpm"
\r
113 #include "xpm/send16.xpm"
\r
114 #include "xpm/send16noshadow.xpm"
\r
115 #include "xpm/send20.xpm"
\r
116 #include "xpm/about.xpm"
\r