Gavin Andresen: implementation of autostart on system startup option on Linux
[novacoin.git] / headers.h
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
4 \r
5 #ifdef _MSC_VER\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
10 #endif\r
11 #ifdef _WIN32_WINNT\r
12 #undef _WIN32_WINNT\r
13 #endif\r
14 #define _WIN32_WINNT 0x0400\r
15 #ifdef _WIN32_IE\r
16 #undef _WIN32_IE\r
17 #endif\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
21 #include <wx/wx.h>\r
22 #include <wx/stdpaths.h>\r
23 #include <wx/snglinst.h>\r
24 #if wxUSE_GUI\r
25 #include <wx/utils.h>\r
26 #include <wx/clipbrd.h>\r
27 #include <wx/taskbar.h>\r
28 #endif\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
34 #include <db_cxx.h>\r
35 #include <stdio.h>\r
36 #include <stdlib.h>\r
37 #include <math.h>\r
38 #include <limits.h>\r
39 #include <float.h>\r
40 #include <assert.h>\r
41 #include <memory>\r
42 #include <iostream>\r
43 #include <sstream>\r
44 #include <string>\r
45 #include <vector>\r
46 #include <list>\r
47 #include <deque>\r
48 #include <map>\r
49 #include <set>\r
50 #include <algorithm>\r
51 #include <numeric>\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
67 \r
68 #ifdef __WXMSW__\r
69 #include <windows.h>\r
70 #include <winsock2.h>\r
71 #include <mswsock.h>\r
72 #include <shlobj.h>\r
73 #include <shlwapi.h>\r
74 #include <io.h>\r
75 #include <process.h>\r
76 #include <malloc.h>\r
77 #else\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
82 #include <netdb.h>\r
83 #include <unistd.h>\r
84 #include <errno.h>\r
85 #include <net/if.h>\r
86 #include <ifaddrs.h>\r
87 #endif\r
88 #ifdef __BSD__\r
89 #include <netinet/in.h>\r
90 #endif\r
91 \r
92 \r
93 #pragma hdrstop\r
94 using namespace std;\r
95 using namespace boost;\r
96 \r
97 #include "strlcpy.h"\r
98 #include "serialize.h"\r
99 #include "uint256.h"\r
100 #include "util.h"\r
101 #include "key.h"\r
102 #include "bignum.h"\r
103 #include "base58.h"\r
104 #include "script.h"\r
105 #include "db.h"\r
106 #include "net.h"\r
107 #include "irc.h"\r
108 #include "main.h"\r
109 #include "rpc.h"\r
110 #if wxUSE_GUI\r
111 #include "uibase.h"\r
112 #endif\r
113 #include "ui.h"\r
114 #include "init.h"\r
115 \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