mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-07 08:02:56 +03:00
Add support for win32.
Edit win32/config.mk to set the paths to your openssl and zlib headers and libraries. Then, from the root of the tree: nmake -f NMakefile voila.
This commit is contained in:
@@ -43,14 +43,16 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef LIBSSH2_WIN32
|
||||
#ifdef LIBSSH2_LIBRARY
|
||||
#define LIBSSH2_API __declspec(dllexport)
|
||||
# ifdef LIBSSH2_LIBRARY
|
||||
# define LIBSSH2_API __declspec(dllexport)
|
||||
# else
|
||||
# define LIBSSH2_API __declspec(dllimport)
|
||||
# endif
|
||||
# ifndef _MSC_VER
|
||||
# include <sys/uio.h>
|
||||
# endif
|
||||
#else
|
||||
#define LIBSSH2_API __declspec(dllimport)
|
||||
#endif
|
||||
#include <sys/uio.h>
|
||||
#else
|
||||
#define LIBSSH2_API
|
||||
# define LIBSSH2_API
|
||||
#endif
|
||||
|
||||
#define LIBSSH2_VERSION "0.4"
|
||||
|
Reference in New Issue
Block a user