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.
7 #pragma warning(disable:4786)
8 #pragma warning(disable:4804)
9 #pragma warning(disable:4805)
10 #pragma warning(disable:4717)
15 #define _WIN32_WINNT 0x0501
19 #define _WIN32_IE 0x0400
20 #define WIN32_LEAN_AND_MEAN 1
22 // Include boost/foreach here as it defines __STDC_LIMIT_MACROS on some systems.
23 #include <boost/foreach.hpp>
25 #if (defined(__unix__) || defined(unix)) && !defined(USG)
26 #include <sys/param.h> // to get BSD define
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>
65 #include <sys/resource.h>
66 #include <sys/socket.h>
68 #include <arpa/inet.h>
78 #include <netinet/in.h>
82 #include "serialize.h"