Bitcoin v0.3.10 · 2010-08-15
headers.h
1// Copyright (c) 2009-2010 Satoshi Nakamoto2// Distributed under the MIT/X11 software license, see the accompanying3// file license.txt or http://www.opensource.org/licenses/mit-license.php.45#ifdef _MSC_VER6#pragma warning(disable:4786)7#pragma warning(disable:4804)8#pragma warning(disable:4805)9#pragma warning(disable:4717)10#endif11#ifdef _WIN32_WINNT12#undef _WIN32_WINNT13#endif14#define _WIN32_WINNT 0x040015#ifdef _WIN32_IE16#undef _WIN32_IE17#endif18#define _WIN32_IE 0x040019#define WIN32_LEAN_AND_MEAN 120#define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h21#if (defined(__unix__) || defined(unix)) && !defined(USG)22#include <sys/param.h> // to get BSD define23#endif24#ifdef __WXMAC_OSX__25#ifndef BSD26#define BSD 127#endif28#endif29#ifdef GUI30#include <wx/wx.h>31#include <wx/stdpaths.h>32#include <wx/snglinst.h>33#include <wx/utils.h>34#include <wx/clipbrd.h>35#include <wx/taskbar.h>36#endif37#include <openssl/buffer.h>38#include <openssl/ecdsa.h>39#include <openssl/evp.h>40#include <openssl/rand.h>41#include <openssl/sha.h>42#include <openssl/ripemd.h>43#include <db_cxx.h>44#include <stdio.h>45#include <stdlib.h>46#include <math.h>47#include <limits.h>48#include <float.h>49#include <assert.h>50#include <memory>51#include <iostream>52#include <sstream>53#include <string>54#include <vector>55#include <list>56#include <deque>57#include <map>58#include <set>59#include <algorithm>60#include <numeric>61#include <boost/foreach.hpp>62#include <boost/lexical_cast.hpp>63#include <boost/tuple/tuple.hpp>64#include <boost/tuple/tuple_comparison.hpp>65#include <boost/tuple/tuple_io.hpp>66#include <boost/array.hpp>67#include <boost/bind.hpp>68#include <boost/function.hpp>69#include <boost/filesystem.hpp>70#include <boost/filesystem/fstream.hpp>71#include <boost/algorithm/string.hpp>72#include <boost/thread.hpp>73#include <boost/interprocess/sync/interprocess_mutex.hpp>74#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>75#include <boost/date_time/gregorian/gregorian_types.hpp>76#include <boost/date_time/posix_time/posix_time_types.hpp>77#include <boost/config.hpp>78#include <boost/program_options/detail/config_file.hpp>79#include <boost/program_options/parsers.hpp>8081#ifdef __WXMSW__82#include <windows.h>83#include <winsock2.h>84#include <mswsock.h>85#include <shlobj.h>86#include <shlwapi.h>87#include <io.h>88#include <process.h>89#include <malloc.h>90#else91#include <sys/time.h>92#include <sys/resource.h>93#include <sys/socket.h>94#include <sys/stat.h>95#include <arpa/inet.h>96#include <netdb.h>97#include <unistd.h>98#include <errno.h>99#include <net/if.h>100#include <ifaddrs.h>101#include <fcntl.h>102#endif103#ifdef BSD104#include <netinet/in.h>105#endif106107108#pragma hdrstop109using namespace std;110using namespace boost;111112#include "strlcpy.h"113#include "serialize.h"114#include "uint256.h"115#include "util.h"116#include "key.h"117#include "bignum.h"118#include "base58.h"119#include "script.h"120#include "db.h"121#include "net.h"122#include "irc.h"123#include "main.h"124#include "rpc.h"125#ifdef GUI126#include "uibase.h"127#include "ui.h"128#else129#include "noui.h"130#endif131#include "init.h"132133#include "xpm/addressbook16.xpm"134#include "xpm/addressbook20.xpm"135#include "xpm/bitcoin16.xpm"136#include "xpm/bitcoin20.xpm"137#include "xpm/bitcoin32.xpm"138#include "xpm/bitcoin48.xpm"139#include "xpm/bitcoin80.xpm"140#include "xpm/check.xpm"141#include "xpm/send16.xpm"142#include "xpm/send16noshadow.xpm"143#include "xpm/send20.xpm"144#include "xpm/about.xpm"
Click a line number to link to it; use #L10-L20 for a range. "=" next to a version means the file is identical there.
