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 1.9KB

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