genesis 1
genesis 2
genesis 3
genesis 4
genesis 5
genesis 6 #ifdef _MSC_VER
genesis 7 #pragma warning(disable:4786)
genesis 8 #pragma warning(disable:4804)
genesis 9 #pragma warning(disable:4805)
genesis 10 #pragma warning(disable:4717)
genesis 11 #endif
genesis 12 #ifdef _WIN32_WINNT
genesis 13 #undef _WIN32_WINNT
genesis 14 #endif
genesis 15 #define _WIN32_WINNT 0x0500
genesis 16 #ifdef _WIN32_IE
genesis 17 #undef _WIN32_IE
genesis 18 #endif
genesis 19 #define _WIN32_IE 0x0400
genesis 20 #define WIN32_LEAN_AND_MEAN 1
genesis 21
genesis 22
genesis 23 #include <boost/foreach.hpp>
genesis 24 #ifndef __STDC_LIMIT_MACROS
genesis 25 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
genesis 26 #endif
genesis 27
genesis 28 #if (defined(__unix__) || defined(unix)) && !defined(USG)
genesis 29 #include <sys/param.h> // to get BSD define
genesis 30 #endif
genesis 31 #ifdef MAC_OSX
genesis 32 #ifndef BSD
genesis 33 #define BSD 1
genesis 34 #endif
genesis 35 #endif
genesis 36 #include <openssl/buffer.h>
genesis 37 #include <openssl/ecdsa.h>
genesis 38 #include <openssl/evp.h>
genesis 39 #include <openssl/rand.h>
genesis 40 #include <openssl/sha.h>
genesis 41 #include <openssl/ripemd.h>
genesis 42 #include <db_cxx.h>
genesis 43 #include <stdio.h>
genesis 44 #include <stdlib.h>
genesis 45 #include <time.h>
genesis 46 #include <math.h>
genesis 47 #include <limits.h>
genesis 48 #include <float.h>
genesis 49 #include <assert.h>
genesis 50 #include <iostream>
genesis 51 #include <sstream>
genesis 52 #include <string>
genesis 53 #include <vector>
genesis 54 #include <list>
genesis 55 #include <deque>
genesis 56 #include <map>
genesis 57
genesis 58 #ifdef WIN32
genesis 59 #include <windows.h>
genesis 60 #include <winsock2.h>
genesis 61 #include <mswsock.h>
genesis 62 #include <shlobj.h>
genesis 63 #include <shlwapi.h>
genesis 64 #include <io.h>
genesis 65 #include <process.h>
genesis 66 #include <malloc.h>
genesis 67 #else
genesis 68 #include <sys/time.h>
genesis 69 #include <sys/resource.h>
genesis 70 #include <sys/socket.h>
genesis 71 #include <sys/stat.h>
genesis 72 #include <arpa/inet.h>
genesis 73 #include <netdb.h>
genesis 74 #include <unistd.h>
genesis 75 #include <errno.h>
genesis 76 #include <net/if.h>
genesis 77 #include <ifaddrs.h>
genesis 78 #include <fcntl.h>
genesis 79 #include <signal.h>
genesis 80 #endif
genesis 81 #ifdef BSD
genesis 82 #include <netinet/in.h>
genesis 83 #endif
genesis 84
genesis 85
genesis 86 #include "serialize.h"
genesis 87 #include "uint256.h"
genesis 88 #include "util.h"
genesis 89 #include "bignum.h"
genesis 90 #include "base58.h"
genesis 91 #include "main.h"
genesis 92 #ifdef QT_GUI
genesis 93 #include "qtui.h"
genesis 94 #else
genesis 95 #include "noui.h"
genesis 96 #endif