NCBI C++ ToolKit
ncbiconf_msvc.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: ncbiconf_msvc.h 102159 2024-04-09 14:24:54Z ucko $
2  * By Denis Vakatov, NCBI (vakatov@ncbi.nlm.nih.gov)
3  *
4  * MS-Win 32/64, MSVC++ 6.0/.NET
5  *
6  * NOTE: Unlike its UNIX counterpart, this configuration header
7  * is manually maintained in order to keep it in-sync with the
8  * "configure"-generated configuration headers.
9  */
10 
11 
12 /*
13  * Standard Toolkit/MSVC properties
14  */
15 
16 #define NCBI_CXX_TOOLKIT 1
17 
18 #define NCBI_OS "MSWIN"
19 #define NCBI_OS_MSWIN 1
20 
21 #define NCBI_COMPILER "MSVC"
22 #define NCBI_COMPILER_MSVC 1
23 
24 #define HOST_CPU "i386"
25 #define HOST_VENDOR "pc"
26 
27 #define NCBI_PLUGIN_AUTO_LOAD 1
28 #ifdef NCBI_DLL_BUILD
29 # define NCBI_DLL_SUPPORT 1
30 #endif
31 
32 #define HAVE_STRDUP 1
33 #define HAVE_STRICMP 1
34 #define NCBI_USE_THROW_SPEC 1
35 #define STACK_GROWS_DOWN 1
36 #define HAVE_IOS_REGISTER_CALLBACK 1
37 #define HAVE_IOS_XALLOC 1
38 #define HAVE_UNALIGNED_READS 1
39 
40 #define SIZEOF___INT64 8
41 #define SIZEOF_CHAR 1
42 #define SIZEOF_DOUBLE 8
43 #define SIZEOF_FLOAT 4
44 #define SIZEOF_INT 4
45 #define SIZEOF_LONG 4
46 #define SIZEOF_LONG_DOUBLE 8
47 #define SIZEOF_SHORT 2
48 #define SIZEOF_SQLWCHAR 2
49 #define SIZEOF_WCHAR_T 2
50 
51 #define STDC_HEADERS 1
52 
53 #define HAVE_FSTREAM 1
54 #define HAVE_FSTREAM_H 1
55 #define HAVE_IOSTREAM 1
56 #define HAVE_IOSTREAM_H 1
57 #define HAVE_LIMITS 1
58 #define HAVE_LIMITS_H 1
59 #define HAVE_STRSTREA_H 1
60 #define HAVE_STRSTREAM 1
61 #define HAVE_SYS_STAT_H 1
62 #define HAVE_SYS_TYPES_H 1
63 #define HAVE_VSNPRINTF 1
64 
65 #if _MSC_VER < 1500
66 # define vsnprintf _vsnprintf
67 #endif
68 #define HAVE_WINDOWS_H 1
69 #define HAVE_WSTRING 1
70 #define HAVE_SIGNAL_H 1
71 
72 #define NCBI_FORCEINLINE __forceinline
73 #define NCBI_PACKED_ENUM_TYPE(type) : type
74 #define NCBI_PACKED_ENUM_END()
75 #define NCBI_RESTRICT_C
76 #define NCBI_RESTRICT_CXX
77 #define NCBI_TLS_VAR __declspec(thread)
78 
79 #ifdef _WIN64
80 # define HOST "i386-pc-win64"
81 # define HOST_OS "win64"
82 typedef __int64 ssize_t;
83 # define HAVE_INTPTR_T
84 # define SIZEOF_LONG_LONG 8
85 # define SIZEOF_SIZE_T 8
86 # define SIZEOF_VOIDP 8
87 # define NCBI_PLATFORM_BITS 64
88 # define NCBI_SQLCOLATTRIBUTE_SQLLEN 1
89 # define NCBI_SQLPARAMOPTIONS_SQLLEN 1
90 #else
91 # define HOST "i386-pc-win32"
92 # define HOST_OS "win32"
93 typedef int ssize_t;
94 # define SIZEOF_LONG_LONG 0
95 # define SIZEOF_SIZE_T 4
96 # define SIZEOF_VOIDP 4
97 # define NCBI_PLATFORM_BITS 32
98 #endif
99 
100 #define HAVE_LIBKRB5 1
101 
102 /* Next libs always exists, in external or embedded variants, so define them directly */
103 #define HAVE_LIBZ 1
104 #define HAVE_LIBZCF 1
105 #define HAVE_LIBBZ2 1
106 
107 /* FreeTDS */
108 
109 #define HAVE_ALARM 1
110 #define HAVE_ATOLL 1
111 #define HAVE_ERRNO_H 1
112 #define HAVE_FCNTL_H 1
113 #define HAVE_FSTAT 1
114 #define HAVE_GETHOSTNAME 1
115 #define HAVE_INT64 1
116 #define HAVE_LOCALE_H 1
117 #define HAVE_MALLOC_H 1
118 #define HAVE_MEMORY_H 1
119 #define HAVE_PUTENV 1
120 #define HAVE_SNPRINTF 1
121 #define HAVE_SQLLEN 1
122 #define HAVE_SQLROWOFFSET 1
123 #define HAVE_SQLROWSETSIZE 1
124 #define HAVE_SQLSETPOSIROW 1
125 #define HAVE_STDBOOL_H 1
126 #define HAVE_STDLIB_H 1
127 #define HAVE_STRING_H 1
128 #define HAVE_STRTOK_S 1
129 #define HAVE_WINSOCK2_H 1
130 #define HAVE__FSEEKI64 1
131 #define HAVE__FTELLI64 1
132 #define HAVE__HEAPWALK 1
133 #define HAVE__LOCK_FILE 1
134 #define HAVE__UNLOCK_FILE 1
135 #define HAVE__VSCPRINTF 1
136 #define HAVE__VSNPRINTF 1
137 #define NCBI_HAVE_STDIO_LOCKED 1
138 
139 #ifdef __GNUC__
140 # define HAVE_SYS_TIME_H 1
141 #endif
142 
143 #define ICONV_CONST const
144 #define NETDB_REENTRANT 1
145 
146 #if _MSC_VER >= 1400
147 // need to include some standard header to get all debugging macros
148 # ifdef __cplusplus
149 # include <cstdint>
150 # endif
151 /* Suppress 'deprecated' warning for STD functions */
152 #if !defined(_CRT_NONSTDC_DEPRECATE)
153 #define _CRT_NONSTDC_DEPRECATE(x)
154 #endif
155 #if !defined(_SECURE_SCL_DEPRECATE)
156 #define _SECURE_SCL_DEPRECATE 0
157 #endif
158 
159 # if !defined(_SECURE_SCL) || _SECURE_SCL
160 /* STL iterators are non-POD types */
161 # define NCBI_NON_POD_TYPE_STL_ITERATORS 1
162 # endif
163 
164 #endif
165 
166 /* Windows Server 2008, Windows Vista and above */
167 #define NCBI_WIN32_WINNT 0x0600
168 #if !defined(_WIN32_WINNT)
169 # define _WIN32_WINNT NCBI_WIN32_WINNT
170 #elif _WIN32_WINNT < NCBI_WIN32_WINNT
171 # undef _WIN32_WINNT
172 # define _WIN32_WINNT NCBI_WIN32_WINNT
173 #endif
174 
175 /*
176  * Site localization
177  */
178 
179 /* PROJECT_TREE_BUILDER-generated site localization
180  */
181 #include <common/config/ncbiconf_msvc_site.h>
int ssize_t
Definition: ncbiconf_msvc.h:93
#define __int64
Definition: sse2neon.h:208
Modified on Wed Jun 19 16:59:28 2024 by modify_doxy.py rev. 669887