Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef DBAPI_DRIVER_FTDS100_FREETDS___CONFIG__H
2 #define DBAPI_DRIVER_FTDS100_FREETDS___CONFIG__H
18 #define ENABLE_ODBC_WIDE 1
21 #ifdef NEED_FREETDS_SRCDIR
22 # define FREETDS_SRCDIR "."
27 #ifndef NCBI_FTDS_RENAME_SYBDB
28 # define NCBI_FTDS_RENAME_SYBDB 1
34 # define ENABLE_EXTRA_CHECKS 1
37 #ifdef NCBI_HAVE_GETHOSTBYADDR_R
38 # if NCBI_HAVE_GETHOSTBYADDR_R == 5
39 # define HAVE_FUNC_GETHOSTBYADDR_R_5 1
40 # elif NCBI_HAVE_GETHOSTBYADDR_R == 7
41 # define HAVE_FUNC_GETHOSTBYADDR_R_7 1
42 # elif NCBI_HAVE_GETHOSTBYADDR_R == 8
43 # define HAVE_FUNC_GETHOSTBYADDR_R_8 1
45 # error "Unexpected number of arguments detected for gethostbyaddr_r()"
49 #ifdef NCBI_HAVE_GETHOSTBYNAME_R
50 # if NCBI_HAVE_GETHOSTBYNAME_R == 3
51 # define HAVE_FUNC_GETHOSTBYNAME_R_3 1
52 # elif NCBI_HAVE_GETHOSTBYNAME_R == 5
53 # define HAVE_FUNC_GETHOSTBYNAME_R_5 1
54 # elif NCBI_HAVE_GETHOSTBYNAME_R == 6
55 # define HAVE_FUNC_GETHOSTBYNAME_R_6 1
57 # error "Unexpected number of arguments detected for gethostbyname_r()"
62 #ifdef NCBI_HAVE_GETPWUID_R
63 # define HAVE_GETPWUID_R 1
64 # if NCBI_HAVE_GETPWUID_R == 4
65 # define HAVE_FUNC_GETPWUID_R_4 1
66 # define HAVE_FUNC_GETPWUID_R_4_PW 1
67 # elif NCBI_HAVE_GETPWUID_R == 5
68 # define HAVE_FUNC_GETPWUID_R_5 1
70 # error "Unexpected number of arguments detected for getpwuid_r()"
74 #ifdef NCBI_HAVE_GETSERVBYNAME_R
75 # if NCBI_HAVE_GETSERVBYNAME_R == 4
76 # define HAVE_FUNC_GETSERVBYNAME_R_4 1
77 # elif NCBI_HAVE_GETSERVBYNAME_R == 5
78 # define HAVE_FUNC_GETSERVBYNAME_R_5 1
79 # elif NCBI_HAVE_GETSERVBYNAME_R == 6
80 # define HAVE_FUNC_GETSERVBYNAME_R_6 1
82 # error "Unexpected number of arguments detected for getservbyname_r()"
86 #if defined(HAVE_LIBICONV) && !defined(NCBI_OS_SOLARIS)
90 #if SIZEOF_LONG == 8 || SIZEOF_LONG_LONG == 8 || SIZEOF___INT64 == 8
94 #ifndef HAVE_SOCKLEN_T
99 # ifdef HAVE_LIBGNUTLS
100 # define HAVE_GNUTLS 1
103 # ifdef HAVE_LIBOPENSSL
104 # define HAVE_OPENSSL 1
108 #ifdef NCBI_HAVE_READDIR_R
109 # define HAVE_READDIR_R 1
112 #ifndef SIZEOF_SQLWCHAR
113 # ifdef SQL_WCHART_CONVERT
114 # define SIZEOF_SQLWCHAR SIZEOF_WCHAR_T
116 # define SIZEOF_SQLWCHAR SIZEOF_SHORT
121 #define SIZEOF_VOID_P SIZEOF_VOIDP
123 #ifdef HAVE_ATTRIBUTE_DESTRUCTOR
124 # define TDS_ATTRIBUTE_DESTRUCTOR 1
127 #if defined(HAVE_DECL_CLOCK_MONOTONIC) && HAVE_DECL_CLOCK_MONOTONIC
128 # define TDS_GETTIMEMILLI_CONST CLOCK_MONOTONIC
129 #elif defined(HAVE_DECL_CLOCK_SGI_CYCLE) && HAVE_DECL_CLOCK_SGI_CYCLE
130 # define TDS_GETTIMEMILLI_CONST CLOCK_SGI_CYCLE
131 #elif defined(HAVE_DECL_CLOCK_REALTIME) && HAVE_DECL_CLOCK_REALTIME
132 # define TDS_GETTIMEMILLI_CONST CLOCK_REALTIME
135 #ifdef NCBI_POSIX_THREADS
136 # define HAVE_PTHREAD 1
138 #ifdef HAVE_PTHREAD_MUTEX
139 # define TDS_HAVE_PTHREAD_MUTEX 1
142 #ifdef NCBI_HAVE_STDIO_LOCKED
143 # define TDS_HAVE_STDIO_LOCKED 1
146 #ifdef NCBI_SQLCOLATTRIBUTE_SQLLEN
147 # define TDS_SQLCOLATTRIBUTE_SQLLEN 1
150 #ifdef NCBI_COMPILER_MSVC
152 # define snprintf _snprintf
154 # define TDS_I64_PREFIX "I64"
155 # define inline __inline
160 # define HAVE_GETADDRINFO 1
163 #ifdef NCBI_COMPILER_MSVC
166 # define ENABLE_KRB5 1
170 # define TDS_NO_THREADSAFE 1
173 #include "../impl/rename_ftds_replacements.h"
174 #include "../impl/rename_ftds_tds.h"
Front end for a platform-specific configuration summary.