Update License in File Headers
[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 COPYING 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 0x0501
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
25 #if (defined(__unix__) || defined(unix)) && !defined(USG)
26 #include <sys/param.h>  // to get BSD define
27 #endif
28 #ifdef MAC_OSX
29 #ifndef BSD
30 #define BSD 1
31 #endif
32 #endif
33 #include <openssl/buffer.h>
34 #include <openssl/ecdsa.h>
35 #include <openssl/evp.h>
36 #include <openssl/rand.h>
37 #include <openssl/sha.h>
38 #include <openssl/ripemd.h>
39 #include <db_cxx.h>
40 #include <stdio.h>
41 #include <stdlib.h>
42 #include <time.h>
43 #include <math.h>
44 #include <float.h>
45 #include <assert.h>
46 #include <iostream>
47 #include <sstream>
48 #include <string>
49 #include <vector>
50 #include <list>
51 #include <deque>
52 #include <map>
53
54 #ifdef WIN32
55 #include <windows.h>
56 #include <winsock2.h>
57 #include <mswsock.h>
58 #include <shlobj.h>
59 #include <shlwapi.h>
60 #include <io.h>
61 #include <process.h>
62 #include <malloc.h>
63 #else
64 #include <sys/time.h>
65 #include <sys/resource.h>
66 #include <sys/socket.h>
67 #include <sys/stat.h>
68 #include <arpa/inet.h>
69 #include <netdb.h>
70 #include <unistd.h>
71 #include <errno.h>
72 #include <net/if.h>
73 #include <ifaddrs.h>
74 #include <fcntl.h>
75 #include <signal.h>
76 #endif
77 #ifdef BSD
78 #include <netinet/in.h>
79 #endif
80
81
82 #include "serialize.h"
83 #include "uint256.h"
84 #include "util.h"
85 #include "bignum.h"
86 #include "base58.h"
87 #include "main.h"
88 #ifdef QT_GUI
89 #include "qtui.h"
90 #else
91 #include "noui.h"
92 #endif