precompile.h 510 B

123456789101112131415161718192021222324252627
  1. #ifdef _WIN32
  2. #include <WinSock2.h>
  3. #define WIN32_LEAN_AND_MEAN
  4. #include <Mmsystem.h>
  5. #include <windows.h>
  6. #else
  7. //#include <wtypes.h>
  8. #include <semaphore.h>
  9. #endif // _WIN32
  10. #include <apr_tables.h>
  11. #include <apr_thread_mutex.h>
  12. #include <apr_ring.h>
  13. #include <apr_strings.h>
  14. #include <apr_thread_proc.h>
  15. #include <apr_pools.h>
  16. #include <apr_general.h>
  17. #ifndef CONTAINING_RECORD
  18. #define CONTAINING_RECORD(address, type, field) \
  19. ((type*)(((uint64_t)address) - (uint64_t)(&(((type*)0)->field))))
  20. #endif