Debian Codegraph @

extra/gperftools/gperftools-2.15/cmake/config.h.in

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