WindowsIncludes.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #if defined (WINDOWS_STORE_RT)
  11. #include <windows.h>
  12. #include <winsock.h>
  13. #elif defined (_WIN32)
  14. #include <WinSock2.h>
  15. #include <windows.h>
  16. #include <Ws2tcpip.h>
  17. // Must always include Winsock2.h before windows.h
  18. // or else:
  19. // winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
  20. // winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
  21. // winsock.h(83) : see previous definition of 'FD_SET'
  22. // winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
  23. // winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
  24. // winsock2.h(212) : error C2011: 'netent' : 'struct' type redefinition
  25. // winsock2.h(219) : error C2011: 'servent' : 'struct' type redefinition
  26. #endif
粤ICP备19079148号