5e39eccb0c91a62130333f8711a420bbd4711935
[novacoin.git] / src / headers.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2011 The Bitcoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
5
6 #ifdef _MSC_VER
7 #pragma warning(disable:4786)
8 #pragma warning(disable:4804)
9 #pragma warning(disable:4805)
10 #pragma warning(disable:4717)
11 #endif
12 #ifdef _WIN32_WINNT
13 #undef _WIN32_WINNT
14 #endif
15 #define _WIN32_WINNT 0x0500
16 #ifdef _WIN32_IE
17 #undef _WIN32_IE
18 #endif
19 #define _WIN32_IE 0x0400
20 #define WIN32_LEAN_AND_MEAN 1
21 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
22 #if (defined(__unix__) || defined(unix)) && !defined(USG)
23 #include <sys/param.h>  // to get BSD define
24 #endif
25 #ifdef __WXMAC_OSX__
26 #ifndef BSD
27 #define BSD 1
28 #endif
29 #endif
30 #ifdef GUI
31 #include <wx/wx.h>
32 #include <wx/stdpaths.h>
33 #include <wx/snglinst.h>
34 #include <wx/utils.h>
35 #include <wx/clipbrd.h>
36 #include <wx/taskbar.h>
37 #endif
38 #include <openssl/buffer.h>
39 #include <openssl/ecdsa.h>
40 #include <openssl/evp.h>
41 #include <openssl/rand.h>
42 #include <openssl/sha.h>
43 #include <openssl/ripemd.h>
44 #include <db_cxx.h>
45 #include <stdio.h>
46 #include <stdlib.h>
47 #include <time.h>
48 #include <math.h>
49 #include <limits.h>
50 #include <float.h>
51 #include <assert.h>
52 #include <iostream>
53 #include <sstream>
54 #include <string>
55 #include <vector>
56 #include <list>
57 #include <deque>
58 #include <map>
59
60 #include <boost/foreach.hpp>
61
62 #ifdef __WXMSW__
63 #include <windows.h>
64 #include <winsock2.h>
65 #include <mswsock.h>
66 #include <shlobj.h>
67 #include <shlwapi.h>
68 #include <io.h>
69 #include <process.h>
70 #include <malloc.h>
71 #else
72 #include <sys/time.h>
73 #include <sys/resource.h>
74 #include <sys/socket.h>
75 #include <sys/stat.h>
76 #include <arpa/inet.h>
77 #include <netdb.h>
78 #include <unistd.h>
79 #include <errno.h>
80 #include <net/if.h>
81 #include <ifaddrs.h>
82 #include <fcntl.h>
83 #include <signal.h>
84 #endif
85 #ifdef BSD
86 #include <netinet/in.h>
87 #endif
88
89
90 #pragma hdrstop
91
92 #include "serialize.h"
93 #include "uint256.h"
94 #include "util.h"
95 #include "bignum.h"
96 #include "base58.h"
97 #include "main.h"
98 #ifdef GUI
99 #include "uibase.h"
100 #include "ui.h"
101 #else
102 #ifdef QT_GUI
103 #include "qtui.h"
104 #else
105 #include "noui.h"
106 #endif
107 #endif
108
109 #ifdef GUI
110 #include "xpm/addressbook16.xpm"
111 #include "xpm/addressbook20.xpm"
112 #include "xpm/bitcoin16.xpm"
113 #include "xpm/bitcoin20.xpm"
114 #include "xpm/bitcoin32.xpm"
115 #include "xpm/bitcoin48.xpm"
116 #include "xpm/bitcoin80.xpm"
117 #include "xpm/check.xpm"
118 #include "xpm/send16.xpm"
119 #include "xpm/send16noshadow.xpm"
120 #include "xpm/send20.xpm"
121 #include "xpm/about.xpm"
122 #endif