You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

headers.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Distributed under the MIT/X11 software license, see the accompanying
  3. // file license.txt or http://www.opensource.org/licenses/mit-license.php.
  4. #ifdef _MSC_VER
  5. #pragma warning(disable:4786)
  6. #pragma warning(disable:4804)
  7. #pragma warning(disable:4805)
  8. #pragma warning(disable:4717)
  9. #endif
  10. #ifdef _WIN32_WINNT
  11. #undef _WIN32_WINNT
  12. #endif
  13. #define _WIN32_WINNT 0x0500
  14. #ifdef _WIN32_IE
  15. #undef _WIN32_IE
  16. #endif
  17. #define _WIN32_IE 0x0400
  18. #define WIN32_LEAN_AND_MEAN 1
  19. #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
  20. #if (defined(__unix__) || defined(unix)) && !defined(USG)
  21. #include <sys/param.h> // to get BSD define
  22. #endif
  23. #ifdef __WXMAC_OSX__
  24. #ifndef BSD
  25. #define BSD 1
  26. #endif
  27. #endif
  28. #ifdef GUI
  29. #include <wx/wx.h>
  30. #include <wx/stdpaths.h>
  31. #include <wx/snglinst.h>
  32. #include <wx/utils.h>
  33. #include <wx/clipbrd.h>
  34. #include <wx/taskbar.h>
  35. #endif
  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>
  42. #include <db_cxx.h>
  43. #include <stdio.h>
  44. #include <stdlib.h>
  45. #include <time.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/file_lock.hpp>
  74. #include <boost/interprocess/sync/interprocess_mutex.hpp>
  75. #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
  76. #include <boost/date_time/gregorian/gregorian_types.hpp>
  77. #include <boost/date_time/posix_time/posix_time_types.hpp>
  78. #include <boost/config.hpp>
  79. #include <boost/program_options/detail/config_file.hpp>
  80. #include <boost/program_options/parsers.hpp>
  81. #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. #else
  91. #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. #include <signal.h>
  103. #endif
  104. #ifdef BSD
  105. #include <netinet/in.h>
  106. #endif
  107. #pragma hdrstop
  108. #include "strlcpy.h"
  109. #include "serialize.h"
  110. #include "uint256.h"
  111. #include "util.h"
  112. #include "key.h"
  113. #include "bignum.h"
  114. #include "base58.h"
  115. #include "script.h"
  116. #include "db.h"
  117. #include "net.h"
  118. #include "irc.h"
  119. #include "main.h"
  120. #include "rpc.h"
  121. #ifdef GUI
  122. #include "uibase.h"
  123. #include "ui.h"
  124. #else
  125. #include "noui.h"
  126. #endif
  127. #include "init.h"
  128. #ifdef GUI
  129. #include "xpm/addressbook16.xpm"
  130. #include "xpm/addressbook20.xpm"
  131. #include "xpm/bitcoin16.xpm"
  132. #include "xpm/bitcoin20.xpm"
  133. #include "xpm/bitcoin32.xpm"
  134. #include "xpm/bitcoin48.xpm"
  135. #include "xpm/bitcoin80.xpm"
  136. #include "xpm/check.xpm"
  137. #include "xpm/send16.xpm"
  138. #include "xpm/send16noshadow.xpm"
  139. #include "xpm/send20.xpm"
  140. #include "xpm/about.xpm"
  141. #endif