libssh2_config.h 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef LIBSSH2_CONFIG_H
  2. #define LIBSSH2_CONFIG_H
  3. #ifndef WIN32
  4. #define WIN32
  5. #endif
  6. #include <winsock2.h>
  7. #include <mswsock.h>
  8. #include <ws2tcpip.h>
  9. #ifdef __MINGW32__
  10. #define HAVE_UNISTD_H
  11. #define HAVE_INTTYPES_H
  12. #define HAVE_SYS_TIME_H
  13. #endif
  14. #define HAVE_WINSOCK2_H
  15. #define HAVE_IOCTLSOCKET
  16. #define HAVE_SELECT
  17. #ifdef _MSC_VER
  18. #define snprintf _snprintf
  19. #if _MSC_VER < 1500
  20. #define vsnprintf _vsnprintf
  21. #else
  22. #define ssize_t SSIZE_T
  23. #define uint32_t UINT32
  24. #endif
  25. #define strncasecmp _strnicmp
  26. #define strcasecmp _stricmp
  27. #else
  28. #define strncasecmp strnicmp
  29. #define strcasecmp stricmp
  30. #endif /* _MSC_VER */
  31. /* Compile in zlib support */
  32. #define LIBSSH2_HAVE_ZLIB 1
  33. /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
  34. #define LIBSSH2_DH_GEX_NEW 1
  35. #endif /* LIBSSH2_CONFIG_H */