33 typedef __int64 lcb_int64_t;
34 typedef __int32 lcb_int32_t;
35 typedef SIZE_T lcb_size_t;
36 typedef SSIZE_T lcb_ssize_t;
37 typedef unsigned __int8 lcb_uint8_t;
38 typedef unsigned __int16 lcb_vbucket_t;
39 typedef unsigned __int16 lcb_uint16_t;
40 typedef unsigned __int32 lcb_uint32_t;
41 typedef unsigned __int64 lcb_cas_t;
42 typedef unsigned __int64 lcb_uint64_t;
45 typedef unsigned __int32 lcb_time_t;
47 #include <sys/types.h>
51 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
55 typedef int64_t lcb_int64_t;
56 typedef int32_t lcb_int32_t;
57 typedef size_t lcb_size_t;
58 typedef ssize_t lcb_ssize_t;
59 typedef uint16_t lcb_vbucket_t;
60 typedef uint8_t lcb_uint8_t;
61 typedef uint16_t lcb_uint16_t;
62 typedef uint32_t lcb_uint32_t;
63 typedef uint64_t lcb_cas_t;
64 typedef uint64_t lcb_uint64_t;
65 typedef time_t lcb_time_t;
68 typedef lcb_int64_t lcb_S64;
69 typedef lcb_uint64_t lcb_U64;
70 typedef lcb_uint32_t lcb_U32;
71 typedef lcb_int32_t lcb_S32;
72 typedef lcb_uint16_t lcb_U16;
73 typedef lcb_uint8_t lcb_U8;
74 typedef lcb_size_t lcb_SIZE;
75 typedef lcb_ssize_t lcb_SSIZE;
76 typedef lcb_time_t lcb_SECS;
77 typedef lcb_cas_t lcb_CAS;
80 #define LCB_DEPRECATED(X) X __attribute__((deprecated))
81 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
82 #define LCB_DEPRECATED2(X, reason) X __attribute__((deprecated(reason)))
84 #define LCB_DEPRECATED2(X, reason) LCB_DEPRECATED(X)
86 #elif defined(_MSC_VER)
87 #define LCB_DEPRECATED(X) __declspec(deprecated) X
88 #define LCB_DEPRECATED2(X, reason) __declspec(deprecated(reason)) X
90 #define LCB_DEPRECATED(X) X
91 #define LCB_DEPRECATED2(X, reason)