Remove wxWidgets
[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 #include <openssl/buffer.h>
31 #include <openssl/ecdsa.h>
32 #include <openssl/evp.h>
33 #include <openssl/rand.h>
34 #include <openssl/sha.h>
35 #include <openssl/ripemd.h>
36 #include <db_cxx.h>
37 #include <stdio.h>
38 #include <stdlib.h>
39 #include <time.h>
40 #include <math.h>
41 #include <limits.h>
42 #include <float.h>
43 #include <assert.h>
44 #include <iostream>
45 #include <sstream>
46 #include <string>
47 #include <vector>
48 #include <list>
49 #include <deque>
50 #include <map>
51
52 #include <boost/foreach.hpp>
53
54 #ifdef __WXMSW__
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 #pragma hdrstop
83
84 #include "serialize.h"
85 #include "uint256.h"
86 #include "util.h"
87 #include "bignum.h"
88 #include "base58.h"
89 #include "main.h"
90 #ifdef QT_GUI
91 #include "qtui.h"
92 #else
93 #include "noui.h"
94 #endif