stdafx.h 429 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "cstdafx.h"
  3. #include <util/system/compat.h>
  4. #include <util/network/init.h>
  5. #if defined(_unix_)
  6. #include <netdb.h>
  7. #include <fcntl.h>
  8. #elif defined(_win_)
  9. #include <winsock2.h>
  10. using socklen_t = int;
  11. #endif
  12. #include <util/generic/ptr.h>
  13. template <class T>
  14. static const T* BreakAliasing(const void* f) {
  15. return (const T*)f;
  16. }
  17. template <class T>
  18. static T* BreakAliasing(void* f) {
  19. return (T*)f;
  20. }