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.
7 #pragma warning(disable:4786)
8 #pragma warning(disable:4804)
9 #pragma warning(disable:4805)
10 #pragma warning(disable:4717)
15 #define _WIN32_WINNT 0x0500
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>
24 #ifndef __STDC_LIMIT_MACROS
25 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
28 #if (defined(__unix__) || defined(unix)) && !defined(USG)
29 #include <sys/param.h> // to get BSD define
36 #include <openssl/buffer.h>
37 #include <openssl/ecdsa.h>
38 #include <openssl/evp.h>
39 #include <openssl/rand.h>
40 #include <openssl/sha.h>
41 #include <openssl/ripemd.h>
69 #include <sys/resource.h>
70 #include <sys/socket.h>
72 #include <arpa/inet.h>
82 #include <netinet/in.h>
88 #include "serialize.h"