diff options
| author | Andreas Schneider <mail@cynapses.org> | 2009-02-02 14:42:40 +0000 |
|---|---|---|
| committer | Andreas Schneider <mail@cynapses.org> | 2009-02-02 14:42:40 +0000 |
| commit | 4259c9195c756ac22358c1c10844030372823a76 (patch) | |
| tree | 7dabb97068f2010200aacbe7ecf65542faf5eba3 /include/libssh | |
| parent | 70aa33c041b88573b32d67d0153c6472ce41ea8b (diff) | |
| download | libssh-4259c9195c756ac22358c1c10844030372823a76.tar.gz libssh-4259c9195c756ac22358c1c10844030372823a76.tar.xz libssh-4259c9195c756ac22358c1c10844030372823a76.zip | |
Cleanup the define check in the libssh header file.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@201 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh')
| -rw-r--r-- | include/libssh/libssh.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index f3ad2f56..5376f02c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -20,25 +20,24 @@ MA 02111-1307, USA. */ #ifndef _LIBSSH_H #define _LIBSSH_H + #ifndef _MSC_VER #include <unistd.h> #include <inttypes.h> -#else +#else /* _MSC_VER */ //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 /* _MSC_VER */ -#endif -#ifndef _WIN32 -#include <sys/select.h> /* for fd_set * */ -#include <netdb.h> -#endif #ifdef _WIN32 #include <winsock2.h> -#endif - +#else +#include <sys/select.h> /* for fd_set * */ +#include <netdb.h> +#endif /* _WIN32 */ #define LIBSSH_VERSION "libssh-0.3-svn" |
