Debian Codegraph @

extra/gperftools/gperftools-2.15/src/windows/config.h

raw
1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2 /* A manual version of config.h fit for windows machines.
3 *
4 * Use of this source code is governed by a BSD-style license that can
5 * be found in the LICENSE file.
6 */
7
8 /* Sometimes we accidentally #include this config.h instead of the one
9 in .. -- this is particularly true for msys/mingw, which uses the
10 unix config.h but also runs code in the windows directory.
11 */
12 #ifdef __MINGW32__
13 #include "../config.h"
14 #define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
15 #endif
16
17 // windows.h whatevevs defines min and max preprocessor macros and
18 // that breaks ::max() in various places (like numeric_limits)
19 #ifndef NOMINMAX
20 #define NOMINMAX
21 #endif
22
23 #ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
24 #define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
25 /* used by tcmalloc.h */
26 #define GPERFTOOLS_CONFIG_H_
27
28 /* Enable aggressive decommit by default */
29 /* #undef ENABLE_AGGRESSIVE_DECOMMIT_BY_DEFAULT */
30
31 /* Build new/delete operators for overaligned types */
32 /* #undef ENABLE_ALIGNED_NEW_DELETE */
33
34 /* Build runtime detection for sized delete */
35 /* #undef ENABLE_DYNAMIC_SIZED_DELETE */
36
37 /* Report large allocation */
38 /* #undef ENABLE_LARGE_ALLOC_REPORT */
39
40 /* Build sized deletion operators */
41 /* #undef ENABLE_SIZED_DELETE */
42
43 /* Define to 1 if you have the <asm/ptrace.h> header file. */
44 /* #undef HAVE_ASM_PTRACE_H */
45
46 /* Define to 1 if you have the <cygwin/signal.h> header file. */
47 /* #undef HAVE_CYGWIN_SIGNAL_H */
48
49 /* Define to 1 if you have the declaration of `backtrace', and to 0 if you
50 don't. */
51 /* #undef HAVE_DECL_BACKTRACE */
52
53 /* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
54 */
55 #define HAVE_DECL_CFREE 0
56
57 /* Define to 1 if you have the declaration of `memalign', and to 0 if you
58 don't. */
59 #define HAVE_DECL_MEMALIGN 0
60
61 /* Define to 1 if you have the declaration of `nanosleep', and to 0 if you
62 don't. */
63 #define HAVE_DECL_NANOSLEEP 0
64
65 /* Define to 1 if you have the declaration of `posix_memalign', and to 0 if
66 you don't. */
67 #define HAVE_DECL_POSIX_MEMALIGN 0
68
69 /* Define to 1 if you have the declaration of `pvalloc', and to 0 if you
70 don't. */
71 #define HAVE_DECL_PVALLOC 0
72
73 /* Define to 1 if you have the declaration of `sleep', and to 0 if you don't.
74 */
75 #define HAVE_DECL_SLEEP 0
76
77 /* Define to 1 if you have the declaration of `valloc', and to 0 if you don't.
78 */
79 #define HAVE_DECL_VALLOC 0
80
81 /* Define to 1 if you have the <dlfcn.h> header file. */
82 /* #undef HAVE_DLFCN_H */
83
84 /* Define to 1 if the system has the type `Elf32_Versym'. */
85 /* #undef HAVE_ELF32_VERSYM */
86
87 /* Define to 1 if you have the <execinfo.h> header file. */
88 /* #undef HAVE_EXECINFO_H */
89
90 /* Define to 1 if you have the <fcntl.h> header file. */
91 #define HAVE_FCNTL_H 1
92
93 /* Define to 1 if you have the <features.h> header file. */
94 /* #undef HAVE_FEATURES_H */
95
96 /* Define to 1 if you have the `fork' function. */
97 /* #undef HAVE_FORK */
98
99 /* Define to 1 if you have the `geteuid' function. */
100 /* #undef HAVE_GETEUID */
101
102 /* Define to 1 if you have the <glob.h> header file. */
103 /* #undef HAVE_GLOB_H */
104
105 /* Define to 1 if you have the <grp.h> header file. */
106 /* #undef HAVE_GRP_H */
107
108 /* Define to 1 if you have the <libunwind.h> header file. */
109 /* #undef HAVE_LIBUNWIND_H */
110
111 /* Define if this is Linux that has SIGEV_THREAD_ID */
112 /* #undef HAVE_LINUX_SIGEV_THREAD_ID */
113
114 /* Define to 1 if you have the <malloc.h> header file. */
115 #define HAVE_MALLOC_H 1
116
117 /* Define to 1 if you have the <memory.h> header file. */
118 #define HAVE_MEMORY_H 1
119
120 /* Define to 1 if you have a working `mmap' system call. */
121 /* #undef HAVE_MMAP */
122
123 /* Define to 1 if you have the <poll.h> header file. */
124 /* #undef HAVE_POLL_H */
125
126 /* define if libc has program_invocation_name */
127 /* #undef HAVE_PROGRAM_INVOCATION_NAME */
128
129 /* Define if you have POSIX threads libraries and header files. */
130 /* #undef HAVE_PTHREAD */
131
132 /* defined to 1 if pthread symbols are exposed even without include pthread.h
133 */
134 /* #undef HAVE_PTHREAD_DESPITE_ASKING_FOR */
135
136 /* Define to 1 if you have the <pwd.h> header file. */
137 /* #undef HAVE_PWD_H */
138
139 /* Define to 1 if you have the `sbrk' function. */
140 /* #undef HAVE_SBRK */
141
142 /* Define to 1 if you have the <sched.h> header file. */
143 /* #undef HAVE_SCHED_H */
144
145 /* Define to 1 if the system has the type `struct mallinfo'. */
146 /* #undef HAVE_STRUCT_MALLINFO */
147
148 /* Define to 1 if the system has the type `struct mallinfo2'. */
149 /* #undef HAVE_STRUCT_MALLINFO2 */
150
151 /* Define to 1 if you have the <sys/cdefs.h> header file. */
152 /* #undef HAVE_SYS_CDEFS_H */
153
154 /* Define to 1 if you have the <sys/resource.h> header file. */
155 /* #undef HAVE_SYS_RESOURCE_H */
156
157 /* Define to 1 if you have the <sys/socket.h> header file. */
158 /* #undef HAVE_SYS_SOCKET_H */
159
160 /* Define to 1 if you have the <sys/stat.h> header file. */
161 #define HAVE_SYS_STAT_H 1
162
163 /* Define to 1 if you have the <sys/syscall.h> header file. */
164 /* #undef HAVE_SYS_SYSCALL_H */
165
166 /* Define to 1 if you have the <sys/types.h> header file. */
167 #define HAVE_SYS_TYPES_H 1
168
169 /* Define to 1 if you have the <sys/ucontext.h> header file. */
170 /* #undef HAVE_SYS_UCONTEXT_H */
171
172 /* Define to 1 if you have the <sys/wait.h> header file. */
173 /* #undef HAVE_SYS_WAIT_H */
174
175 /* Define to 1 if compiler supports __thread */
176 #define HAVE_TLS 1
177
178 /* Define to 1 if you have the <ucontext.h> header file. */
179 /* #undef HAVE_UCONTEXT_H */
180
181 /* Define to 1 if you have the <unistd.h> header file. */
182 /* #undef HAVE_UNISTD_H */
183
184 /* Whether <unwind.h> contains _Unwind_Backtrace */
185 /* #undef HAVE_UNWIND_BACKTRACE */
186
187 /* Define to 1 if you have the <unwind.h> header file. */
188 /* #undef HAVE_UNWIND_H */
189
190 /* define if your compiler has __attribute__ */
191 /* #undef HAVE___ATTRIBUTE__ */
192
193 /* define if your compiler supports alignment of functions */
194 /* #undef HAVE___ATTRIBUTE__ALIGNED_FN */
195
196 /* Define to 1 if compiler supports __environ */
197 /* #undef HAVE___ENVIRON */
198
199 /* Define to 1 if you have the `__sbrk' function. */
200 /* #undef HAVE___SBRK */
201
202 /* prefix where we look for installed files */
203 /* #undef INSTALL_PREFIX */
204
205 /* Define to the sub-directory where libtool stores uninstalled libraries. */
206 /* #undef LT_OBJDIR */
207
208 /* Name of package */
209 #define PACKAGE "gperftools"
210
211 /* Define to the address where bug reports for this package should be sent. */
212 #define PACKAGE_BUGREPORT "[email protected]"
213
214 /* Define to the full name of this package. */
215 #define PACKAGE_NAME "gperftools"
216
217 /* Define to the full name and version of this package. */
218 #define PACKAGE_STRING "gperftools 2.15"
219
220 /* Define to the one symbol short name of this package. */
221 #define PACKAGE_TARNAME "gperftools"
222
223 /* Define to the home page for this package. */
224 #define PACKAGE_URL ""
225
226 /* Define to the version of this package. */
227 #define PACKAGE_VERSION "2.15"
228
229 /* Always the empty-string on non-windows systems. On windows, should be
230 "__declspec(dllexport)". This way, when we compile the dll, we export our
231 functions/classes. It's safe to define this here because config.h is only
232 used internally, to compile the DLL, and every DLL source file #includes
233 "config.h" before anything else. */
234 #ifndef PERFTOOLS_DLL_DECL
235 # define PERFTOOLS_IS_A_DLL 1 /* not set if you're statically linking */
236 # define PERFTOOLS_DLL_DECL __declspec(dllexport)
237 # define PERFTOOLS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
238 #endif
239
240 /* Mark the systems where we know it's bad if pthreads runs too
241 early before main (before threads are initialized, presumably). */
242 #ifdef __FreeBSD__
243 #define PTHREADS_CRASHES_IF_RUN_TOO_EARLY 1
244 #endif
245
246 /* Define 8 bytes of allocation alignment for tcmalloc */
247 /* #undef TCMALLOC_ALIGN_8BYTES */
248
249 /* Define internal page size for tcmalloc as number of left bitshift */
250 /* #undef TCMALLOC_PAGE_SIZE_SHIFT */
251
252 /* C99 says: define this to get the PRI... macros from stdint.h */
253 #ifndef __STDC_FORMAT_MACROS
254 # define __STDC_FORMAT_MACROS 1
255 #endif
256
257 // ---------------------------------------------------------------------
258 // Extra stuff not found in config.h.in
259
260 // This must be defined before the windows.h is included. We need at
261 // least 0x0400 for mutex.h to have access to TryLock, and at least
262 // 0x0501 for patch_functions.cc to have access to GetModuleHandleEx.
263 // (This latter is an optimization we could take out if need be.)
264 #ifndef _WIN32_WINNT
265 # define _WIN32_WINNT 0x0501
266 #endif
267
268 // We want to make sure not to ever try to #include heap-checker.h
269 #define NO_HEAP_CHECK 1
270
271 // TODO(csilvers): include windows/port.h in every relevant source file instead?
272 #include "windows/port.h"
273
274 #endif /* GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ */