geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
952 B

  1. #ifndef LIBSSH2_CONFIG_H
  2. #define LIBSSH2_CONFIG_H
  3. #ifndef WIN32
  4. #define WIN32
  5. #endif
  6. #ifndef _CRT_SECURE_NO_DEPRECATE
  7. #define _CRT_SECURE_NO_DEPRECATE 1
  8. #endif /* _CRT_SECURE_NO_DEPRECATE */
  9. #include <winsock2.h>
  10. #include <mswsock.h>
  11. #include <ws2tcpip.h>
  12. #ifdef __MINGW32__
  13. #define HAVE_UNISTD_H
  14. #define HAVE_INTTYPES_H
  15. #define HAVE_SYS_TIME_H
  16. #define HAVE_GETTIMEOFDAY
  17. #endif /* __MINGW32__ */
  18. #define HAVE_LIBCRYPT32
  19. #define HAVE_WINSOCK2_H
  20. #define HAVE_IOCTLSOCKET
  21. #define HAVE_SELECT
  22. #ifdef _MSC_VER
  23. #if _MSC_VER < 1900
  24. #define snprintf _snprintf
  25. #if _MSC_VER < 1500
  26. #define vsnprintf _vsnprintf
  27. #endif
  28. #define strdup _strdup
  29. #define strncasecmp _strnicmp
  30. #define strcasecmp _stricmp
  31. #endif
  32. #else
  33. #ifndef __MINGW32__
  34. #define strncasecmp strnicmp
  35. #define strcasecmp stricmp
  36. #endif /* __MINGW32__ */
  37. #endif /* _MSC_VER */
  38. /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
  39. #define LIBSSH2_DH_GEX_NEW 1
  40. #endif /* LIBSSH2_CONFIG_H */