PageRenderTime 25ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/mordor/pch.h

http://github.com/mozy/mordor
C Header | 131 lines | 112 code | 14 blank | 5 comment | 3 complexity | 9be9f79aac960e9942635bf7455a60be MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #ifndef __MORDOR_PCH_H__
  2. #define __MORDOR_PCH_H__
  3. #include "version.h"
  4. #include "predef.h"
  5. // OS Headers
  6. #include <errno.h>
  7. #include <fcntl.h>
  8. #ifdef POSIX
  9. #include <sys/types.h>
  10. #include <execinfo.h>
  11. #include <netdb.h>
  12. #include <netinet/in.h>
  13. #include <pthread.h>
  14. #include <setjmp.h>
  15. #include <signal.h>
  16. #include <stddef.h>
  17. #include <sys/fcntl.h>
  18. #include <sys/mman.h>
  19. #include <sys/socket.h>
  20. #include <sys/stat.h>
  21. #include <sys/time.h>
  22. #include <sys/uio.h>
  23. #include <sys/un.h>
  24. #ifndef OSX
  25. #include <netinet/ip.h>
  26. #include <netinet/in_systm.h>
  27. #include <ucontext.h>
  28. #endif
  29. #undef major
  30. #undef minor
  31. #endif
  32. #ifdef BSD
  33. #include <sys/event.h>
  34. #endif
  35. #ifdef WINDOWS
  36. #include <windows.h>
  37. #include <direct.h>
  38. #include <lm.h>
  39. #include <lmcons.h>
  40. #include <ntstatus.h>
  41. #include <security.h>
  42. #include <winerror.h>
  43. #include <winhttp.h>
  44. #include <winsock2.h>
  45. #include <mswsock.h>
  46. #include <ws2tcpip.h>
  47. #elif defined(LINUX)
  48. #include <byteswap.h>
  49. #include <semaphore.h>
  50. #include <sys/epoll.h>
  51. #include <syscall.h>
  52. #elif defined(OSX)
  53. #include <libkern/OSAtomic.h>
  54. #include <mach/mach_init.h>
  55. #include <mach/mach_time.h>
  56. #include <mach/task.h>
  57. #include <sys/_endian.h>
  58. #include <sys/sysctl.h>
  59. #include <CoreFoundation/CFString.h>
  60. #elif defined(FREEBSD)
  61. #include <sys/endian.h>
  62. #include <sys/sem.h>
  63. #endif
  64. // C Headers
  65. #include <stdlib.h>
  66. #include <string.h>
  67. #include <time.h>
  68. // C++ Headers
  69. #include <algorithm>
  70. #include <bitset>
  71. #include <iostream>
  72. #include <limits>
  73. #include <list>
  74. #include <map>
  75. #include <set>
  76. #include <sstream>
  77. #include <stack>
  78. #include <stdexcept>
  79. #include <string>
  80. #include <typeinfo>
  81. #include <vector>
  82. // Non-STL C++ headers
  83. #if !defined(GCC) || defined(__clang__)
  84. #include <boost/bind.hpp>
  85. #endif
  86. #include <boost/enable_shared_from_this.hpp>
  87. #include <boost/noncopyable.hpp>
  88. #include <boost/scoped_ptr.hpp>
  89. #include <boost/shared_array.hpp>
  90. #include <boost/shared_ptr.hpp>
  91. #include <boost/blank.hpp>
  92. #include <boost/date_time.hpp>
  93. #include <boost/exception/all.hpp>
  94. #include <boost/function.hpp>
  95. #include <boost/lexical_cast.hpp>
  96. #include <boost/multi_index_container.hpp>
  97. #include <boost/multi_index/ordered_index.hpp>
  98. #include <boost/multi_index/global_fun.hpp>
  99. #include <boost/multi_index/member.hpp>
  100. #include <boost/regex.hpp>
  101. #include <boost/signals2/signal.hpp>
  102. #include <boost/thread/mutex.hpp>
  103. #include <boost/thread/tss.hpp>
  104. #include <boost/variant.hpp>
  105. // Non-CRT C headers
  106. #include <openssl/aes.h>
  107. #include <openssl/bio.h>
  108. #include <openssl/blowfish.h>
  109. #include <openssl/err.h>
  110. #include <openssl/md5.h>
  111. #include <openssl/sha.h>
  112. #include <openssl/ssl.h>
  113. #include <zlib.h>
  114. #if defined(VALGRIND) && (defined(LINUX) || defined (OSX))
  115. #include <valgrind/valgrind.h>
  116. #endif
  117. #endif