Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/lib/libgadu.h @ 32777:e2ff2ac0e022
Gadu-Gadu: synchronize internal libgadu with upstream - second encounter. Refs #343
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Fri, 21 Oct 2011 12:48:30 +0000 |
parents | ef01f180114b |
children |
comparison
equal
deleted
inserted
replaced
32776:8c71a7e95f16 | 32777:e2ff2ac0e022 |
---|---|
31 */ | 31 */ |
32 | 32 |
33 #ifndef __GG_LIBGADU_H | 33 #ifndef __GG_LIBGADU_H |
34 #define __GG_LIBGADU_H | 34 #define __GG_LIBGADU_H |
35 | 35 |
36 #ifdef _WIN32 | 36 #if defined(__cplusplus) || defined(_WIN32) |
37 #pragma pack(push, 1) | 37 #pragma pack(push, 1) |
38 #endif | 38 #endif |
39 | 39 |
40 #ifdef __cplusplus | 40 #ifdef __cplusplus |
41 extern "C" { | 41 extern "C" { |
51 #undef GG_CONFIG_BIGENDIAN | 51 #undef GG_CONFIG_BIGENDIAN |
52 | 52 |
53 /* Defined if this machine has gethostbyname_r(). */ | 53 /* Defined if this machine has gethostbyname_r(). */ |
54 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R | 54 #undef GG_CONFIG_HAVE_GETHOSTBYNAME_R |
55 | 55 |
56 /* Defined if this machine has _exit(). */ | |
57 #undef GG_CONFIG_HAVE__EXIT | |
58 | |
59 /* Defined if libgadu was compiled and linked with fork support. */ | |
60 #undef GG_CONFIG_HAVE_FORK | |
61 | |
56 /* Defined if libgadu was compiled and linked with pthread support. */ | 62 /* Defined if libgadu was compiled and linked with pthread support. */ |
57 #undef GG_CONFIG_HAVE_PTHREAD | 63 #undef GG_CONFIG_HAVE_PTHREAD |
58 | 64 |
59 /* Defined if pthread resolver is the default one. */ | 65 /* Defined if pthread resolver is the default one. */ |
60 #undef GG_CONFIG_PTHREAD_DEFAULT | 66 #undef GG_CONFIG_PTHREAD_DEFAULT |
93 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H | 99 #undef GG_CONFIG_HAVE_SYS_INT_TYPES_H |
94 | 100 |
95 /* Defined if uintX_t types are defined in <sys/types.h>. */ | 101 /* Defined if uintX_t types are defined in <sys/types.h>. */ |
96 #undef GG_CONFIG_HAVE_SYS_TYPES_H | 102 #undef GG_CONFIG_HAVE_SYS_TYPES_H |
97 | 103 |
98 #ifdef _WIN32 | 104 #include "libgadu-config.h" |
99 # undef GG_CONFIG_HAVE_FORK | |
100 #else | |
101 # define GG_CONFIG_HAVE_FORK | |
102 #endif | |
103 | 105 |
104 #ifdef GG_CONFIG_HAVE_OPENSSL | 106 #ifdef GG_CONFIG_HAVE_OPENSSL |
105 #include <openssl/ssl.h> | 107 #include <openssl/ssl.h> |
106 #endif | 108 #endif |
107 | 109 |
119 # else | 121 # else |
120 # ifdef GG_CONFIG_HAVE_SYS_TYPES_H | 122 # ifdef GG_CONFIG_HAVE_SYS_TYPES_H |
121 # include <sys/types.h> | 123 # include <sys/types.h> |
122 # else | 124 # else |
123 | 125 |
124 #ifndef __AC_STDINT_H | |
125 #define __AC_STDINT_H | |
126 | |
127 /* ISO C 9X: 7.18 Integer types <stdint.h> */ | 126 /* ISO C 9X: 7.18 Integer types <stdint.h> */ |
128 | 127 |
129 typedef unsigned char uint8_t; | 128 typedef unsigned char uint8_t; |
130 typedef unsigned short uint16_t; | 129 typedef unsigned short uint16_t; |
131 typedef unsigned int uint32_t; | 130 typedef unsigned int uint32_t; |
132 | |
133 #if !defined(__CYGWIN__) && !defined(__SunOS) && !defined(_INCLUDE_HPUX_SOURCE) | |
134 #define __int8_t_defined | |
135 typedef signed char int8_t; | |
136 typedef signed short int16_t; | |
137 typedef signed int int32_t; | |
138 #endif | |
139 | |
140 #endif /* __AC_STDINT_H */ | |
141 | 131 |
142 # endif | 132 # endif |
143 # endif | 133 # endif |
144 # endif | 134 # endif |
145 # endif | 135 # endif |
2300 #define GG_DCC7_TIMEOUT_SEND 1800 /* 30 minut */ | 2290 #define GG_DCC7_TIMEOUT_SEND 1800 /* 30 minut */ |
2301 #define GG_DCC7_TIMEOUT_GET 1800 /* 30 minut */ | 2291 #define GG_DCC7_TIMEOUT_GET 1800 /* 30 minut */ |
2302 #define GG_DCC7_TIMEOUT_FILE_ACK 300 /* 5 minut */ | 2292 #define GG_DCC7_TIMEOUT_FILE_ACK 300 /* 5 minut */ |
2303 #define GG_DCC7_TIMEOUT_VOICE_ACK 300 /* 5 minut */ | 2293 #define GG_DCC7_TIMEOUT_VOICE_ACK 300 /* 5 minut */ |
2304 | 2294 |
2305 #ifdef _WIN32 | |
2306 #pragma pack(pop) | |
2307 #endif | |
2308 | |
2309 #ifdef __cplusplus | 2295 #ifdef __cplusplus |
2310 } | 2296 } |
2311 #endif | 2297 #endif |
2312 | 2298 |
2299 #if defined(__cplusplus) || defined(_WIN32) | |
2300 #pragma pack(pop) | |
2301 #endif | |
2302 | |
2313 #endif /* __GG_LIBGADU_H */ | 2303 #endif /* __GG_LIBGADU_H */ |
2314 | |
2315 #include "libgadu-config.h" | |
2316 | 2304 |
2317 /* | 2305 /* |
2318 * Local variables: | 2306 * Local variables: |
2319 * c-indentation-style: k&r | 2307 * c-indentation-style: k&r |
2320 * c-basic-offset: 8 | 2308 * c-basic-offset: 8 |