1
1

libssh.h now can be included from visual studio

revert the wsapi wont-fix


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@161 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
Aris Adamantiadis 2008-05-22 13:57:27 +00:00
родитель 7278a9df95
Коммит c2f151ab56
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -20,14 +20,24 @@ MA 02111-1307, USA. */
#ifndef _LIBSSH_H
#define _LIBSSH_H
#ifndef _MSC_VER
#include <unistd.h>
#include <inttypes.h>
#else
//visual studio hasn't inttypes.h so it doesn't know uint32_t
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef unsigned long long uint64_t;
#endif
#ifndef _WIN32
#include <sys/select.h> /* for fd_set * */
#endif
#ifdef _WIN32
#include <winsock2.h>
#endif
#include <inttypes.h>
#define LIBSSH_VERSION "libssh-0.2.1-svn"

Просмотреть файл

@ -29,7 +29,7 @@ MA 02111-1307, USA. */
#define _WIN32_WINNT 0x0501 //getaddrinfo, freeaddrinfo, getnameinfo
#include <winsock2.h>
#include <ws2tcpip.h>
#include "wspiapi.h"
//#include "wspiapi.h"
#else
#include <netdb.h>
#include <sys/socket.h>