~psiphon-inc/psiphon/trunk

« back to all changes in this revision

Viewing changes to trunk/PsiphonX/libraries/include/libssh2/libssh2_config.h

  • Committer: Adam Kruger
  • Date: 2011-02-07 20:43:10 UTC
  • mfrom: (157.1.3 psiphon-with-psiphonx)
  • Revision ID: akruger@kruger-xps-20110207204310-6ph82r21rce8ldze
Merge PsiphonX.

Show diffs side-by-side

added added

removed removed

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