wsipv6ok.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _WSIPV6OK_
  7. #define _WSIPV6OK_
  8. #ifdef IPV6STRICT
  9. #include <ws2tcpip.h>
  10. #include <wspiapi.h>
  11. #undef AF_INET
  12. #define AF_INET AF_INET_IPV6INCOMPATIBLE
  13. #undef PF_INET
  14. #define PF_INET PF_INET_IPV6INCOMPATIBLE
  15. #undef in_addr
  16. #define in_addr in_addr_IPV6INCOMPATIBLE
  17. #undef IN_ADDR
  18. #define IN_ADDR IN_ADDR_IPV6INCOMPATIBLE
  19. #undef PIN_ADDR
  20. #define PIN_ADDR PIN_ADDR_IPV6INCOMPATIBLE
  21. #undef LPIN_ADDR
  22. #define LPIN_ADDR LPIN_ADDR_IPV6INCOMPATIBLE
  23. #undef IPAddr
  24. #define IPAddr IPAddr_IPV6INCOMPATIBLE
  25. #undef sockaddr_in
  26. #define sockaddr_in sockaddr_in_IPV6INCOMPATIBLE
  27. #undef SOCKADDR_IN
  28. #define SOCKADDR_IN SOCKADDR_IN_IPV6INCOMPATIBLE
  29. #undef PSOCKADDR_IN
  30. #define PSOCKADDR_IN PSOCKADDR_IN_IPV6INCOMPATIBLE
  31. #undef LPSOCKADDR_IN
  32. #define LPSOCKADDR_IN LPSOCKADDR_IN_IPV6INCOMPATIBLE
  33. #undef INADDR_ANY
  34. #define INADDR_ANY INADDR_ANY_IPV6INCOMPATIBLE
  35. #undef INADDR_LOOPBACK
  36. #define INADDR_LOOPBACK INADDR_LOOPBACK_IPV6INCOMPATIBLE
  37. #undef IPPROTO_IP
  38. #define IPPROTO_IP IPPROTO_IP_IPV6INCOMPATIBLE
  39. #undef IP_MULTICAST_IF
  40. #define IP_MULTICAST_IF IP_MULTICAST_IF_IPV6INCOMPATIBLE
  41. #undef IP_MULTICAST_TTL
  42. #define IP_MULTICAST_TTL IP_MULTICAST_TTL_IPV6INCOMPATIBLE
  43. #undef IP_MULTICAST_LOOP
  44. #define IP_MULTICAST_LOOP IP_MULTICAST_LOOP_IPV6INCOMPATIBLE
  45. #undef IP_ADD_MEMBERSHIP
  46. #define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP_IPV6INCOMPATIBLE
  47. #undef IP_DROP_MEMBERSHIP
  48. #define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP_IPV6INCOMPATIBLE
  49. #undef ip_mreq
  50. #define ip_mreq ip_mreq_IPV6INCOMPATIBLE
  51. #undef gethostbyname
  52. #define gethostbyname(a) gethostbyname_IPV6INCOMPATIBLE
  53. #undef hostent
  54. #define hostent hostent_IPV6INCOMPATIBLE
  55. #undef HOSTENT
  56. #define HOSTENT HOSTENT_IPV6INCOMPATIBLE
  57. #undef PHOSTENT
  58. #define PHOSTENT PHOSTENT_IPV6INCOMPATIBLE
  59. #undef LPHOSTENT
  60. #define LPHOSTENT LPHOSTENT_IPV6INCOMPATIBLE
  61. #undef inet_addr
  62. #define inet_addr(a) inet_addr_IPV6INCOMPATIBLE
  63. #undef gethostbyaddr
  64. #define gethostbyaddr(a,b,c) gethostbyaddr_IPV6INCOMPATIBLE
  65. #undef inet_ntoa
  66. #define inet_ntoa(a) inet_ntoa_IPV6INCOMPATIBLE
  67. #undef IN_MULTICAST
  68. #define IN_MULTICAST(a) IN_MULTICAST_IPV6INCOMPATIBLE
  69. #undef IN_CLASSD
  70. #define IN_CLASSD(a) IN_CLASSD_IPV6INCOMPATIBLE
  71. #undef IP_TTL
  72. #define IP_TTL IP_TTL_IPV6INCOMPATIBLE
  73. #undef IN_CLASSA
  74. #define IN_CLASSA(a) IN_CLASSA_IPV6INCOMPATIBLE
  75. #undef IN_CLASSB
  76. #define IN_CLASSB(a) IN_CLASSB_IPV6INCOMPATIBLE
  77. #undef IN_CLASSC
  78. #define IN_CLASSC(a) IN_CLASSC_IPV6INCOMPATIBLE
  79. #undef INADDR_BROADCAST
  80. #define INADDR_BROADCAST(a) INADDR_BROADCAST_IPV6INCOMPATIBLE
  81. #undef WSAAsyncGetHostByAddr
  82. #define WSAAsyncGetHostByAddr(a,b,c,d,e,f,g) WSAAsyncGetHostByAddr_IPV6INCOMPATIBLE
  83. #undef WSAAsyncGetHostByName
  84. #define WSAAsyncGetHostByName(a,b,c,d,e) WSAAsyncGetHostByName_IPV6INCOMPATIBLE
  85. #endif
  86. #endif