mingw32.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * The Win32 API is maintained by the MinGW developers.
  3. * The licensing for the Win32 API is defined in the
  4. * MinGW file README.w32api, which states:
  5. "Unless otherwise stated in individual source files,
  6. THIS SOFTWARE IS NOT COPYRIGHTED
  7. This source code is offered for use in the public domain. You may use,
  8. modify or distribute it freely.
  9. This source code is distributed in the hope that it will be useful but
  10. WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  11. DISCLAIMED. This includes but is not limited to warranties of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13. */
  14. /*
  15. * Make sure that the Winsock header files get included before any <sys/...>
  16. * header files to avoid that the build fails as follows:
  17. * In file included from /usr/include/w32api/winsock2.h:56:0,
  18. * from ../include/net-snmp/types.h:24,
  19. * from snmp_client.c:87:
  20. * /usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: *warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp]
  21. * #warning "fd_set and associated macros have been defined in sys/types.
  22. */
  23. #include <winsock2.h>
  24. #include <ws2tcpip.h>
  25. #include <net-snmp/system/generic.h>
  26. #undef bsdlike
  27. #undef MBSTAT_SYMBOL
  28. #undef TOTAL_MEMORY_SYMBOL