Update copyrights to 2012 for files modified this year
[novacoin.git] / src / headers.h
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2012 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
22 // Include boost/foreach here as it defines __STDC_LIMIT_MACROS on some systems.
23 #include <boost/foreach.hpp>
24 #ifndef __STDC_LIMIT_MACROS
25 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
26 #endif
27
28 #if (defined(__unix__) || defined(unix)) && !defined(USG)
29 #include <sys/param.h>  // to get BSD define
30 #endif
31 #ifdef __WXMAC_OSX__
32 #ifndef BSD
33 #define BSD 1
34 #endif
35 #endif
36 #ifdef GUI
37 #include <wx/wx.h>
38 #include <wx/stdpaths.h>
39 #include <wx/snglinst.h>
40 #include <wx/utils.h>
41 #include <wx/clipbrd.h>
42 #include <wx/taskbar.h>
43 #endif
44 #include <openssl/buffer.h>
45 #include <openssl/ecdsa.h>
46 #include <openssl/evp.h>
47 #include <openssl/rand.h>
48 #include <openssl/sha.h>
49 #include <openssl/ripemd.h>
50 #include <db_cxx.h>
51 #include <stdio.h>
52 #include <stdlib.h>
53 #include <time.h>
54 #include <math.h>
55 #include <limits.h>
56 #include <float.h>
57 #include <assert.h>
58 #include <iostream>
59 #include <sstream>
60 #include <string>
61 #include <vector>
62 #include <list>
63 #include <deque>
64 #include <map>
65
66 #ifdef __WXMSW__
67 #include <windows.h>
68 #include <winsock2.h>
69 #include <mswsock.h>
70 #include <shlobj.h>
71 #include <shlwapi.h>
72 #include <io.h>
73 #include <process.h>
74 #include <malloc.h>
75 #else
76 #include <sys/time.h>
77 #include <sys/resource.h>
78 #include <sys/socket.h>
79 #include <sys/stat.h>
80 #include <arpa/inet.h>
81 #include <netdb.h>
82 #include <unistd.h>
83 #include <errno.h>
84 #include <net/if.h>
85 #include <ifaddrs.h>
86 #include <fcntl.h>
87 #include <signal.h>
88 #endif
89 #ifdef BSD
90 #include <netinet/in.h>
91 #endif
92
93
94 #include "serialize.h"
95 #include "uint256.h"
96 #include "util.h"
97 #include "bignum.h"
98 #include "base58.h"
99 #include "main.h"
100 #ifdef GUI
101 #include "uibase.h"
102 #include "ui.h"
103 #else
104 #include "noui.h"
105 #endif
106
107 #ifdef GUI
108 #include "xpm/addressbook16.xpm"
109 #include "xpm/addressbook20.xpm"
110 #include "xpm/bitcoin16.xpm"
111 #include "xpm/bitcoin20.xpm"
112 #include "xpm/bitcoin32.xpm"
113 #include "xpm/bitcoin48.xpm"
114 #include "xpm/bitcoin80.xpm"
115 #include "xpm/check.xpm"
116 #include "xpm/send16.xpm"
117 #include "xpm/send16noshadow.xpm"
118 #include "xpm/send20.xpm"
119 #include "xpm/about.xpm"
120 #endif