temp patch for qtui
[novacoin.git] / src / headers.h
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.
4
5 #ifdef _MSC_VER
6 #pragma warning(disable:4786)
7 #pragma warning(disable:4804)
8 #pragma warning(disable:4805)
9 #pragma warning(disable:4717)
10 #endif
11 #ifdef _WIN32_WINNT
12 #undef _WIN32_WINNT
13 #endif
14 #define _WIN32_WINNT 0x0500
15 #ifdef _WIN32_IE
16 #undef _WIN32_IE
17 #endif
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
23 #endif
24 #ifdef __WXMAC_OSX__
25 #ifndef BSD
26 #define BSD 1
27 #endif
28 #endif
29 #ifdef GUI
30 #include <wx/wx.h>
31 #include <wx/stdpaths.h>
32 #include <wx/snglinst.h>
33 #include <wx/utils.h>
34 #include <wx/clipbrd.h>
35 #include <wx/taskbar.h>
36 #endif
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>
43 #include <db_cxx.h>
44 #include <stdio.h>
45 #include <stdlib.h>
46 #include <time.h>
47 #include <math.h>
48 #include <limits.h>
49 #include <float.h>
50 #include <assert.h>
51 #include <iostream>
52 #include <sstream>
53 #include <string>
54 #include <vector>
55 #include <list>
56 #include <deque>
57 #include <map>
58
59 #include <boost/foreach.hpp>
60
61 #ifdef __WXMSW__
62 #include <windows.h>
63 #include <winsock2.h>
64 #include <mswsock.h>
65 #include <shlobj.h>
66 #include <shlwapi.h>
67 #include <io.h>
68 #include <process.h>
69 #include <malloc.h>
70 #else
71 #include <sys/time.h>
72 #include <sys/resource.h>
73 #include <sys/socket.h>
74 #include <sys/stat.h>
75 #include <arpa/inet.h>
76 #include <netdb.h>
77 #include <unistd.h>
78 #include <errno.h>
79 #include <net/if.h>
80 #include <ifaddrs.h>
81 #include <fcntl.h>
82 #include <signal.h>
83 #endif
84 #ifdef BSD
85 #include <netinet/in.h>
86 #endif
87
88
89 #pragma hdrstop
90
91 #include "serialize.h"
92 #include "uint256.h"
93 #include "util.h"
94 #include "bignum.h"
95 #include "base58.h"
96 #include "main.h"
97 #ifdef GUI
98 #include "uibase.h"
99 #include "ui.h"
100 #else
101 #ifdef QT_GUI
102 #include "qtui.h"
103 #else
104 #include "noui.h"
105 #endif
106 #endif
107
108 #ifdef GUI
109 #include "xpm/addressbook16.xpm"
110 #include "xpm/addressbook20.xpm"
111 #include "xpm/bitcoin16.xpm"
112 #include "xpm/bitcoin20.xpm"
113 #include "xpm/bitcoin32.xpm"
114 #include "xpm/bitcoin48.xpm"
115 #include "xpm/bitcoin80.xpm"
116 #include "xpm/check.xpm"
117 #include "xpm/send16.xpm"
118 #include "xpm/send16noshadow.xpm"
119 #include "xpm/send20.xpm"
120 #include "xpm/about.xpm"
121 #endif