Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 1 | /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 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 | #ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ |
| 18 | #define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 19 | /* used by tcmalloc.h */ |
| 20 | #define GPERFTOOLS_CONFIG_H_ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 21 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 22 | /* Enable aggressive decommit by default */ |
| 23 | /* #undef ENABLE_AGGRESSIVE_DECOMMIT_BY_DEFAULT */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 24 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 25 | /* Build new/delete operators for overaligned types */ |
| 26 | /* #undef ENABLE_ALIGNED_NEW_DELETE */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 27 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 28 | /* Build runtime detection for sized delete */ |
| 29 | /* #undef ENABLE_DYNAMIC_SIZED_DELETE */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 30 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 31 | /* 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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 39 | |
| 40 | /* Define to 1 if you have the <cygwin/signal.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 41 | /* #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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 46 | |
| 47 | /* Define to 1 if you have the declaration of `cfree', and to 0 if you don't. |
| 48 | */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 49 | #define HAVE_DECL_CFREE 0 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 50 | |
| 51 | /* Define to 1 if you have the declaration of `memalign', and to 0 if you |
| 52 | don't. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 53 | #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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 58 | |
| 59 | /* Define to 1 if you have the declaration of `posix_memalign', and to 0 if |
| 60 | you don't. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 61 | #define HAVE_DECL_POSIX_MEMALIGN 0 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 62 | |
| 63 | /* Define to 1 if you have the declaration of `pvalloc', and to 0 if you |
| 64 | don't. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 65 | #define HAVE_DECL_PVALLOC 0 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 66 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 67 | /* Define to 1 if you have the declaration of `sleep', and to 0 if you don't. |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 68 | */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 69 | #define HAVE_DECL_SLEEP 0 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 70 | |
| 71 | /* Define to 1 if you have the declaration of `valloc', and to 0 if you don't. |
| 72 | */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 73 | #define HAVE_DECL_VALLOC 0 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 74 | |
| 75 | /* Define to 1 if you have the <dlfcn.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 76 | /* #undef HAVE_DLFCN_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 77 | |
| 78 | /* Define to 1 if the system has the type `Elf32_Versym'. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 79 | /* #undef HAVE_ELF32_VERSYM */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 80 | |
| 81 | /* Define to 1 if you have the <execinfo.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 82 | /* #undef HAVE_EXECINFO_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 83 | |
| 84 | /* Define to 1 if you have the <fcntl.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 85 | #define HAVE_FCNTL_H 1 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 86 | |
| 87 | /* Define to 1 if you have the <features.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 88 | /* #undef HAVE_FEATURES_H */ |
| 89 | |
| 90 | /* Define to 1 if you have the `fork' function. */ |
| 91 | /* #undef HAVE_FORK */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 92 | |
| 93 | /* Define to 1 if you have the `geteuid' function. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 94 | /* #undef HAVE_GETEUID */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 95 | |
| 96 | /* Define to 1 if you have the <glob.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 97 | /* #undef HAVE_GLOB_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 98 | |
| 99 | /* Define to 1 if you have the <grp.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 100 | /* #undef HAVE_GRP_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 101 | |
| 102 | /* Define to 1 if you have the <inttypes.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 103 | #if defined(_MSC_VER) && _MSC_VER >= 1900 |
| 104 | #define HAVE_INTTYPES_H 1 |
| 105 | #endif |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 106 | |
| 107 | /* Define to 1 if you have the <libunwind.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 108 | /* #undef HAVE_LIBUNWIND_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 109 | |
| 110 | /* Define to 1 if you have the <linux/ptrace.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 111 | /* #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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 115 | |
| 116 | /* Define to 1 if you have the <malloc.h> header file. */ |
| 117 | #define HAVE_MALLOC_H 1 |
| 118 | |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 119 | /* Define to 1 if you have the <memory.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 120 | #define HAVE_MEMORY_H 1 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 121 | |
| 122 | /* Define to 1 if you have a working `mmap' system call. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 123 | /* #undef HAVE_MMAP */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 124 | |
| 125 | /* Define to 1 if you have the <poll.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 126 | /* #undef HAVE_POLL_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 127 | |
| 128 | /* define if libc has program_invocation_name */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 129 | /* #undef HAVE_PROGRAM_INVOCATION_NAME */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 130 | |
| 131 | /* Define if you have POSIX threads libraries and header files. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 132 | /* #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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 137 | |
| 138 | /* Define to 1 if you have the <pwd.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 139 | /* #undef HAVE_PWD_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 140 | |
| 141 | /* Define to 1 if you have the `sbrk' function. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 142 | /* #undef HAVE_SBRK */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 143 | |
| 144 | /* Define to 1 if you have the <sched.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 145 | /* #undef HAVE_SCHED_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 146 | |
| 147 | /* Define to 1 if you have the <stdint.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 148 | #define HAVE_STDINT_H 1 |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 149 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 154 | /* #undef HAVE_STRINGS_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 155 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 160 | /* #undef HAVE_STRUCT_MALLINFO */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 161 | |
| 162 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 163 | /* #undef HAVE_SYS_CDEFS_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 164 | |
| 165 | /* Define to 1 if you have the <sys/prctl.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 166 | /* #undef HAVE_SYS_PRCTL_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 167 | |
| 168 | /* Define to 1 if you have the <sys/resource.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 169 | /* #undef HAVE_SYS_RESOURCE_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 170 | |
| 171 | /* Define to 1 if you have the <sys/socket.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 172 | /* #undef HAVE_SYS_SOCKET_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 173 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 178 | /* #undef HAVE_SYS_SYSCALL_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 179 | |
| 180 | /* Define to 1 if you have the <sys/types.h> header file. */ |
| 181 | #define HAVE_SYS_TYPES_H 1 |
| 182 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 183 | /* Define to 1 if you have the <sys/ucontext.h> header file. */ |
| 184 | /* #undef HAVE_SYS_UCONTEXT_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 185 | |
| 186 | /* Define to 1 if you have the <sys/wait.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 187 | /* #undef HAVE_SYS_WAIT_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 188 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 193 | /* #undef HAVE_UCONTEXT_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 194 | |
| 195 | /* Define to 1 if you have the <unistd.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 196 | /* #undef HAVE_UNISTD_H */ |
| 197 | |
| 198 | /* Whether <unwind.h> contains _Unwind_Backtrace */ |
| 199 | /* #undef HAVE_UNWIND_BACKTRACE */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 200 | |
| 201 | /* Define to 1 if you have the <unwind.h> header file. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 202 | /* #undef HAVE_UNWIND_H */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 203 | |
| 204 | /* define if your compiler has __attribute__ */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 205 | /* #undef HAVE___ATTRIBUTE__ */ |
| 206 | |
| 207 | /* define if your compiler supports alignment of functions */ |
| 208 | /* #undef HAVE___ATTRIBUTE__ALIGNED_FN */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 209 | |
| 210 | /* Define to 1 if compiler supports __environ */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 211 | /* #undef HAVE___ENVIRON */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 212 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 213 | /* Define to 1 if you have the `__sbrk' function. */ |
| 214 | /* #undef HAVE___SBRK */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 215 | |
| 216 | /* prefix where we look for installed files */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 217 | /* #undef INSTALL_PREFIX */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 218 | |
| 219 | /* Define to 1 if int32_t is equivalent to intptr_t */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 220 | #ifndef _WIN64 |
| 221 | #define INT32_EQUALS_INTPTR 1 |
| 222 | #endif |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 223 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 224 | /* Define to the sub-directory where libtool stores uninstalled libraries. */ |
| 225 | /* #undef LT_OBJDIR */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 226 | |
| 227 | /* Name of package */ |
| 228 | #define PACKAGE "gperftools" |
| 229 | |
| 230 | /* Define to the address where bug reports for this package should be sent. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 231 | #define PACKAGE_BUGREPORT "gperftools@googlegroups.com" |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 232 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 237 | #define PACKAGE_STRING "gperftools 2.9.1" |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 238 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 243 | #define PACKAGE_URL "" |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 244 | |
| 245 | /* Define to the version of this package. */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 246 | #define PACKAGE_VERSION "2.9.1" |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 247 | |
| 248 | /* How to access the PC from a struct ucontext */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 249 | /* #undef PC_FROM_UCONTEXT */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 250 | |
| 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 257 | # 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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 260 | #endif |
| 261 | |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 262 | /* 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 Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 270 | /* #undef PTHREAD_CREATE_JOINABLE */ |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 271 | |
| 272 | /* Define to 1 if you have the ANSI C header files. */ |
| 273 | #define STDC_HEADERS 1 |
| 274 | |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 275 | /* 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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 280 | |
| 281 | /* Version number of package */ |
Brian Silverman | 20350ac | 2021-11-17 18:19:55 -0800 | [diff] [blame] | 282 | #define VERSION "2.9.1" |
Austin Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 283 | |
| 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 Schuh | 745610d | 2015-09-06 18:19:50 -0700 | [diff] [blame] | 289 | // --------------------------------------------------------------------- |
| 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_ */ |