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 101280 2023-11-27 15:05:44Z ivanov $
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 #else
90 # define HOST "i386-pc-win32"
91 # define HOST_OS "win32"
92 typedef int ssize_t;
93 # define SIZEOF_LONG_LONG 0
94 # define SIZEOF_SIZE_T 4
95 # define SIZEOF_VOIDP 4
96 # define NCBI_PLATFORM_BITS 32
97 #endif
98 
99 #define HAVE_LIBKRB5 1
100 
101 /* Next libs always exists, in external or embedded variants, so define them directly */
102 #define HAVE_LIBZ 1
103 #define HAVE_LIBZCF 1
104 #define HAVE_LIBBZ2 1
105 
106 /* FreeTDS */
107 
108 #define HAVE_ALARM 1
109 #define HAVE_ATOLL 1
110 #define HAVE_ERRNO_H 1
111 #define HAVE_FCNTL_H 1
112 #define HAVE_FSTAT 1
113 #define HAVE_GETHOSTNAME 1
114 #define HAVE_INT64 1
115 #define HAVE_LOCALE_H 1
116 #define HAVE_MALLOC_H 1
117 #define HAVE_MEMORY_H 1
118 #define HAVE_PUTENV 1
119 #define HAVE_SNPRINTF 1
120 #define HAVE_SQLLEN 1
121 #define HAVE_SQLROWOFFSET 1
122 #define HAVE_SQLROWSETSIZE 1
123 #define HAVE_SQLSETPOSIROW 1
124 #define HAVE_STDBOOL_H 1
125 #define HAVE_STDLIB_H 1
126 #define HAVE_STRING_H 1
127 #define HAVE__FSEEKI64 1
128 #define HAVE__FTELLI64 1
129 #define HAVE__LOCK_FILE 1
130 #define HAVE__UNLOCK_FILE 1
131 #define HAVE__VSCPRINTF 1
132 #define HAVE__VSNPRINTF 1
133 #define NCBI_HAVE_STDIO_LOCKED 1
134 
135 #ifdef __GNUC__
136 # define HAVE_SYS_TIME_H 1
137 #endif
138 
139 #define ICONV_CONST const
140 #define NETDB_REENTRANT 1
141 
142 #if _MSC_VER >= 1400
143 // need to include some standard header to get all debugging macros
144 # ifdef __cplusplus
145 # include <cstdint>
146 # endif
147 /* Suppress 'deprecated' warning for STD functions */
148 #if !defined(_CRT_NONSTDC_DEPRECATE)
149 #define _CRT_NONSTDC_DEPRECATE(x)
150 #endif
151 #if !defined(_SECURE_SCL_DEPRECATE)
152 #define _SECURE_SCL_DEPRECATE 0
153 #endif
154 
155 # if !defined(_SECURE_SCL) || _SECURE_SCL
156 /* STL iterators are non-POD types */
157 # define NCBI_NON_POD_TYPE_STL_ITERATORS 1
158 # endif
159 
160 #endif
161 
162 /* Windows Server 2008, Windows Vista and above */
163 #define NCBI_WIN32_WINNT 0x0600
164 #if !defined(_WIN32_WINNT)
165 # define _WIN32_WINNT NCBI_WIN32_WINNT
166 #elif _WIN32_WINNT < NCBI_WIN32_WINNT
167 # undef _WIN32_WINNT
168 # define _WIN32_WINNT NCBI_WIN32_WINNT
169 #endif
170 
171 /*
172  * Site localization
173  */
174 
175 /* PROJECT_TREE_BUILDER-generated site localization
176  */
177 #include <common/config/ncbiconf_msvc_site.h>
int ssize_t
Definition: ncbiconf_msvc.h:92
#define __int64
Definition: sse2neon.h:208
Modified on Sat Dec 09 04:43:53 2023 by modify_doxy.py rev. 669887