blob: bd520e4c6b74dd331540214b3a3ecf598ead77a6 [file] [log] [blame]
Brian Silverman20350ac2021-11-17 18:19:55 -08001/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
Austin Schuh745610d2015-09-06 18:19:50 -07002/* 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#ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
18#define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
Brian Silverman20350ac2021-11-17 18:19:55 -080019/* used by tcmalloc.h */
20#define GPERFTOOLS_CONFIG_H_
Austin Schuh745610d2015-09-06 18:19:50 -070021
Brian Silverman20350ac2021-11-17 18:19:55 -080022/* Enable aggressive decommit by default */
23/* #undef ENABLE_AGGRESSIVE_DECOMMIT_BY_DEFAULT */
Austin Schuh745610d2015-09-06 18:19:50 -070024
Brian Silverman20350ac2021-11-17 18:19:55 -080025/* Build new/delete operators for overaligned types */
26/* #undef ENABLE_ALIGNED_NEW_DELETE */
Austin Schuh745610d2015-09-06 18:19:50 -070027
Brian Silverman20350ac2021-11-17 18:19:55 -080028/* Build runtime detection for sized delete */
29/* #undef ENABLE_DYNAMIC_SIZED_DELETE */
Austin Schuh745610d2015-09-06 18:19:50 -070030
Brian Silverman20350ac2021-11-17 18:19:55 -080031/* Report large allocation */
32/* #undef ENABLE_LARGE_ALLOC_REPORT */
33
34/* Build sized deletion operators */
35/* #undef ENABLE_SIZED_DELETE */
36
37/* Define to 1 if you have the <asm/ptrace.h> header file. */
38/* #undef HAVE_ASM_PTRACE_H */
Austin Schuh745610d2015-09-06 18:19:50 -070039
40/* Define to 1 if you have the <cygwin/signal.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080041/* #undef HAVE_CYGWIN_SIGNAL_H */
42
43/* Define to 1 if you have the declaration of `backtrace', and to 0 if you
44 don't. */
45/* #undef HAVE_DECL_BACKTRACE */
Austin Schuh745610d2015-09-06 18:19:50 -070046
47/* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
48 */
Brian Silverman20350ac2021-11-17 18:19:55 -080049#define HAVE_DECL_CFREE 0
Austin Schuh745610d2015-09-06 18:19:50 -070050
51/* Define to 1 if you have the declaration of `memalign', and to 0 if you
52 don't. */
Brian Silverman20350ac2021-11-17 18:19:55 -080053#define HAVE_DECL_MEMALIGN 0
54
55/* Define to 1 if you have the declaration of `nanosleep', and to 0 if you
56 don't. */
57#define HAVE_DECL_NANOSLEEP 0
Austin Schuh745610d2015-09-06 18:19:50 -070058
59/* Define to 1 if you have the declaration of `posix_memalign', and to 0 if
60 you don't. */
Brian Silverman20350ac2021-11-17 18:19:55 -080061#define HAVE_DECL_POSIX_MEMALIGN 0
Austin Schuh745610d2015-09-06 18:19:50 -070062
63/* Define to 1 if you have the declaration of `pvalloc', and to 0 if you
64 don't. */
Brian Silverman20350ac2021-11-17 18:19:55 -080065#define HAVE_DECL_PVALLOC 0
Austin Schuh745610d2015-09-06 18:19:50 -070066
Brian Silverman20350ac2021-11-17 18:19:55 -080067/* Define to 1 if you have the declaration of `sleep', and to 0 if you don't.
Austin Schuh745610d2015-09-06 18:19:50 -070068 */
Brian Silverman20350ac2021-11-17 18:19:55 -080069#define HAVE_DECL_SLEEP 0
Austin Schuh745610d2015-09-06 18:19:50 -070070
71/* Define to 1 if you have the declaration of `valloc', and to 0 if you don't.
72 */
Brian Silverman20350ac2021-11-17 18:19:55 -080073#define HAVE_DECL_VALLOC 0
Austin Schuh745610d2015-09-06 18:19:50 -070074
75/* Define to 1 if you have the <dlfcn.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080076/* #undef HAVE_DLFCN_H */
Austin Schuh745610d2015-09-06 18:19:50 -070077
78/* Define to 1 if the system has the type `Elf32_Versym'. */
Brian Silverman20350ac2021-11-17 18:19:55 -080079/* #undef HAVE_ELF32_VERSYM */
Austin Schuh745610d2015-09-06 18:19:50 -070080
81/* Define to 1 if you have the <execinfo.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080082/* #undef HAVE_EXECINFO_H */
Austin Schuh745610d2015-09-06 18:19:50 -070083
84/* Define to 1 if you have the <fcntl.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080085#define HAVE_FCNTL_H 1
Austin Schuh745610d2015-09-06 18:19:50 -070086
87/* Define to 1 if you have the <features.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080088/* #undef HAVE_FEATURES_H */
89
90/* Define to 1 if you have the `fork' function. */
91/* #undef HAVE_FORK */
Austin Schuh745610d2015-09-06 18:19:50 -070092
93/* Define to 1 if you have the `geteuid' function. */
Brian Silverman20350ac2021-11-17 18:19:55 -080094/* #undef HAVE_GETEUID */
Austin Schuh745610d2015-09-06 18:19:50 -070095
96/* Define to 1 if you have the <glob.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -080097/* #undef HAVE_GLOB_H */
Austin Schuh745610d2015-09-06 18:19:50 -070098
99/* Define to 1 if you have the <grp.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800100/* #undef HAVE_GRP_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700101
102/* Define to 1 if you have the <inttypes.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800103#if defined(_MSC_VER) && _MSC_VER >= 1900
104#define HAVE_INTTYPES_H 1
105#endif
Austin Schuh745610d2015-09-06 18:19:50 -0700106
107/* Define to 1 if you have the <libunwind.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800108/* #undef HAVE_LIBUNWIND_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700109
110/* Define to 1 if you have the <linux/ptrace.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800111/* #undef HAVE_LINUX_PTRACE_H */
112
113/* Define if this is Linux that has SIGEV_THREAD_ID */
114/* #undef HAVE_LINUX_SIGEV_THREAD_ID */
Austin Schuh745610d2015-09-06 18:19:50 -0700115
116/* Define to 1 if you have the <malloc.h> header file. */
117#define HAVE_MALLOC_H 1
118
Austin Schuh745610d2015-09-06 18:19:50 -0700119/* Define to 1 if you have the <memory.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800120#define HAVE_MEMORY_H 1
Austin Schuh745610d2015-09-06 18:19:50 -0700121
122/* Define to 1 if you have a working `mmap' system call. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800123/* #undef HAVE_MMAP */
Austin Schuh745610d2015-09-06 18:19:50 -0700124
125/* Define to 1 if you have the <poll.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800126/* #undef HAVE_POLL_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700127
128/* define if libc has program_invocation_name */
Brian Silverman20350ac2021-11-17 18:19:55 -0800129/* #undef HAVE_PROGRAM_INVOCATION_NAME */
Austin Schuh745610d2015-09-06 18:19:50 -0700130
131/* Define if you have POSIX threads libraries and header files. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800132/* #undef HAVE_PTHREAD */
133
134/* defined to 1 if pthread symbols are exposed even without include pthread.h
135 */
136/* #undef HAVE_PTHREAD_DESPITE_ASKING_FOR */
Austin Schuh745610d2015-09-06 18:19:50 -0700137
138/* Define to 1 if you have the <pwd.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800139/* #undef HAVE_PWD_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700140
141/* Define to 1 if you have the `sbrk' function. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800142/* #undef HAVE_SBRK */
Austin Schuh745610d2015-09-06 18:19:50 -0700143
144/* Define to 1 if you have the <sched.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800145/* #undef HAVE_SCHED_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700146
147/* Define to 1 if you have the <stdint.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800148#define HAVE_STDINT_H 1
Austin Schuh745610d2015-09-06 18:19:50 -0700149
150/* Define to 1 if you have the <stdlib.h> header file. */
151#define HAVE_STDLIB_H 1
152
153/* Define to 1 if you have the <strings.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800154/* #undef HAVE_STRINGS_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700155
156/* Define to 1 if you have the <string.h> header file. */
157#define HAVE_STRING_H 1
158
159/* Define to 1 if the system has the type `struct mallinfo'. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800160/* #undef HAVE_STRUCT_MALLINFO */
Austin Schuh745610d2015-09-06 18:19:50 -0700161
162/* Define to 1 if you have the <sys/cdefs.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800163/* #undef HAVE_SYS_CDEFS_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700164
165/* Define to 1 if you have the <sys/prctl.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800166/* #undef HAVE_SYS_PRCTL_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700167
168/* Define to 1 if you have the <sys/resource.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800169/* #undef HAVE_SYS_RESOURCE_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700170
171/* Define to 1 if you have the <sys/socket.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800172/* #undef HAVE_SYS_SOCKET_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700173
174/* Define to 1 if you have the <sys/stat.h> header file. */
175#define HAVE_SYS_STAT_H 1
176
177/* Define to 1 if you have the <sys/syscall.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800178/* #undef HAVE_SYS_SYSCALL_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700179
180/* Define to 1 if you have the <sys/types.h> header file. */
181#define HAVE_SYS_TYPES_H 1
182
Brian Silverman20350ac2021-11-17 18:19:55 -0800183/* Define to 1 if you have the <sys/ucontext.h> header file. */
184/* #undef HAVE_SYS_UCONTEXT_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700185
186/* Define to 1 if you have the <sys/wait.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800187/* #undef HAVE_SYS_WAIT_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700188
189/* Define to 1 if compiler supports __thread */
190#define HAVE_TLS 1
191
192/* Define to 1 if you have the <ucontext.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800193/* #undef HAVE_UCONTEXT_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700194
195/* Define to 1 if you have the <unistd.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800196/* #undef HAVE_UNISTD_H */
197
198/* Whether <unwind.h> contains _Unwind_Backtrace */
199/* #undef HAVE_UNWIND_BACKTRACE */
Austin Schuh745610d2015-09-06 18:19:50 -0700200
201/* Define to 1 if you have the <unwind.h> header file. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800202/* #undef HAVE_UNWIND_H */
Austin Schuh745610d2015-09-06 18:19:50 -0700203
204/* define if your compiler has __attribute__ */
Brian Silverman20350ac2021-11-17 18:19:55 -0800205/* #undef HAVE___ATTRIBUTE__ */
206
207/* define if your compiler supports alignment of functions */
208/* #undef HAVE___ATTRIBUTE__ALIGNED_FN */
Austin Schuh745610d2015-09-06 18:19:50 -0700209
210/* Define to 1 if compiler supports __environ */
Brian Silverman20350ac2021-11-17 18:19:55 -0800211/* #undef HAVE___ENVIRON */
Austin Schuh745610d2015-09-06 18:19:50 -0700212
Brian Silverman20350ac2021-11-17 18:19:55 -0800213/* Define to 1 if you have the `__sbrk' function. */
214/* #undef HAVE___SBRK */
Austin Schuh745610d2015-09-06 18:19:50 -0700215
216/* prefix where we look for installed files */
Brian Silverman20350ac2021-11-17 18:19:55 -0800217/* #undef INSTALL_PREFIX */
Austin Schuh745610d2015-09-06 18:19:50 -0700218
219/* Define to 1 if int32_t is equivalent to intptr_t */
Brian Silverman20350ac2021-11-17 18:19:55 -0800220#ifndef _WIN64
221#define INT32_EQUALS_INTPTR 1
222#endif
Austin Schuh745610d2015-09-06 18:19:50 -0700223
Brian Silverman20350ac2021-11-17 18:19:55 -0800224/* Define to the sub-directory where libtool stores uninstalled libraries. */
225/* #undef LT_OBJDIR */
Austin Schuh745610d2015-09-06 18:19:50 -0700226
227/* Name of package */
228#define PACKAGE "gperftools"
229
230/* Define to the address where bug reports for this package should be sent. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800231#define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
Austin Schuh745610d2015-09-06 18:19:50 -0700232
233/* Define to the full name of this package. */
234#define PACKAGE_NAME "gperftools"
235
236/* Define to the full name and version of this package. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800237#define PACKAGE_STRING "gperftools 2.9.1"
Austin Schuh745610d2015-09-06 18:19:50 -0700238
239/* Define to the one symbol short name of this package. */
240#define PACKAGE_TARNAME "gperftools"
241
242/* Define to the home page for this package. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800243#define PACKAGE_URL ""
Austin Schuh745610d2015-09-06 18:19:50 -0700244
245/* Define to the version of this package. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800246#define PACKAGE_VERSION "2.9.1"
Austin Schuh745610d2015-09-06 18:19:50 -0700247
248/* How to access the PC from a struct ucontext */
Brian Silverman20350ac2021-11-17 18:19:55 -0800249/* #undef PC_FROM_UCONTEXT */
Austin Schuh745610d2015-09-06 18:19:50 -0700250
251/* Always the empty-string on non-windows systems. On windows, should be
252 "__declspec(dllexport)". This way, when we compile the dll, we export our
253 functions/classes. It's safe to define this here because config.h is only
254 used internally, to compile the DLL, and every DLL source file #includes
255 "config.h" before anything else. */
256#ifndef PERFTOOLS_DLL_DECL
Brian Silverman20350ac2021-11-17 18:19:55 -0800257# define PERFTOOLS_IS_A_DLL 1 /* not set if you're statically linking */
258# define PERFTOOLS_DLL_DECL __declspec(dllexport)
259# define PERFTOOLS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
Austin Schuh745610d2015-09-06 18:19:50 -0700260#endif
261
Austin Schuh745610d2015-09-06 18:19:50 -0700262/* Mark the systems where we know it's bad if pthreads runs too
263 early before main (before threads are initialized, presumably). */
264#ifdef __FreeBSD__
265#define PTHREADS_CRASHES_IF_RUN_TOO_EARLY 1
266#endif
267
268/* Define to necessary symbol if this constant uses a non-standard name on
269 your system. */
Brian Silverman20350ac2021-11-17 18:19:55 -0800270/* #undef PTHREAD_CREATE_JOINABLE */
Austin Schuh745610d2015-09-06 18:19:50 -0700271
272/* Define to 1 if you have the ANSI C header files. */
273#define STDC_HEADERS 1
274
Brian Silverman20350ac2021-11-17 18:19:55 -0800275/* Define 8 bytes of allocation alignment for tcmalloc */
276/* #undef TCMALLOC_ALIGN_8BYTES */
277
278/* Define internal page size for tcmalloc as number of left bitshift */
279/* #undef TCMALLOC_PAGE_SIZE_SHIFT */
Austin Schuh745610d2015-09-06 18:19:50 -0700280
281/* Version number of package */
Brian Silverman20350ac2021-11-17 18:19:55 -0800282#define VERSION "2.9.1"
Austin Schuh745610d2015-09-06 18:19:50 -0700283
284/* C99 says: define this to get the PRI... macros from stdint.h */
285#ifndef __STDC_FORMAT_MACROS
286# define __STDC_FORMAT_MACROS 1
287#endif
288
Austin Schuh745610d2015-09-06 18:19:50 -0700289// ---------------------------------------------------------------------
290// Extra stuff not found in config.h.in
291
292// This must be defined before the windows.h is included. We need at
293// least 0x0400 for mutex.h to have access to TryLock, and at least
294// 0x0501 for patch_functions.cc to have access to GetModuleHandleEx.
295// (This latter is an optimization we could take out if need be.)
296#ifndef _WIN32_WINNT
297# define _WIN32_WINNT 0x0501
298#endif
299
300// We want to make sure not to ever try to #include heap-checker.h
301#define NO_HEAP_CHECK 1
302
303// TODO(csilvers): include windows/port.h in every relevant source file instead?
304#include "windows/port.h"
305
306#endif /* GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ */