OLD | NEW |
1 /* src/config.h.in. Generated from configure.ac by autoheader. */ | 1 /* A manual version of config.h fit for windows machines. */ |
2 | 2 |
| 3 /* Sometimes we accidentally #include this config.h instead of the one |
| 4 in .. -- this is particularly true for msys/mingw, which uses the |
| 5 unix config.h but also runs code in the windows directory. |
| 6 */ |
| 7 #ifdef __MINGW32__ |
| 8 #include "../config.h" |
| 9 #define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ |
| 10 #endif |
3 | 11 |
4 #ifndef GOOGLE_PERFTOOLS_CONFIG_H_ | 12 #ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ |
5 #define GOOGLE_PERFTOOLS_CONFIG_H_ | 13 #define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ |
6 | 14 |
| 15 /* define this if you are linking tcmalloc statically and overriding the |
| 16 * default allocators. |
| 17 * For instructions on how to use this mode, see |
| 18 * http://groups.google.com/group/google-perftools/browse_thread/thread/41cd3710
af85e57b |
| 19 */ |
| 20 #define WIN32_OVERRIDE_ALLOCATORS |
| 21 |
| 22 /* the location of <hash_map> */ |
| 23 #define HASH_MAP_H <hash_map> |
| 24 |
| 25 /* the namespace of hash_map/hash_set */ |
| 26 #define HASH_NAMESPACE stdext |
| 27 |
| 28 /* the location of <hash_set> */ |
| 29 #define HASH_SET_H <hash_set> |
| 30 |
| 31 /* Define to 1 if your libc has a snprintf implementation */ |
| 32 #undef HAVE_SNPRINTF |
7 | 33 |
8 /* Define to 1 if compiler supports __builtin_stack_pointer */ | 34 /* Define to 1 if compiler supports __builtin_stack_pointer */ |
9 #undef HAVE_BUILTIN_STACK_POINTER | 35 #undef HAVE_BUILTIN_STACK_POINTER |
10 | 36 |
11 /* Define to 1 if you have the <conflict-signal.h> header file. */ | 37 /* Define to 1 if you have the <conflict-signal.h> header file. */ |
12 #undef HAVE_CONFLICT_SIGNAL_H | 38 #undef HAVE_CONFLICT_SIGNAL_H |
13 | 39 |
14 /* Define to 1 if you have the <cygwin/signal.h> header file. */ | 40 /* Define to 1 if you have the <cygwin/signal.h> header file. */ |
15 #undef HAVE_CYGWIN_SIGNAL_H | 41 #undef HAVE_CYGWIN_SIGNAL_H |
16 | 42 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 /* Define to 1 if you have the <fcntl.h> header file. */ | 76 /* Define to 1 if you have the <fcntl.h> header file. */ |
51 #undef HAVE_FCNTL_H | 77 #undef HAVE_FCNTL_H |
52 | 78 |
53 /* Define to 1 if you have the <features.h> header file. */ | 79 /* Define to 1 if you have the <features.h> header file. */ |
54 #undef HAVE_FEATURES_H | 80 #undef HAVE_FEATURES_H |
55 | 81 |
56 /* Define to 1 if you have the `geteuid' function. */ | 82 /* Define to 1 if you have the `geteuid' function. */ |
57 #undef HAVE_GETEUID | 83 #undef HAVE_GETEUID |
58 | 84 |
59 /* Define to 1 if you have the `getpagesize' function. */ | 85 /* Define to 1 if you have the `getpagesize' function. */ |
60 #undef HAVE_GETPAGESIZE | 86 #define HAVE_GETPAGESIZE 1 /* we define it in windows/port.cc */ |
61 | 87 |
62 /* Define to 1 if you have the <glob.h> header file. */ | 88 /* Define to 1 if you have the <glob.h> header file. */ |
63 #undef HAVE_GLOB_H | 89 #undef HAVE_GLOB_H |
64 | 90 |
65 /* Define to 1 if you have the <grp.h> header file. */ | 91 /* Define to 1 if you have the <grp.h> header file. */ |
66 #undef HAVE_GRP_H | 92 #undef HAVE_GRP_H |
67 | 93 |
| 94 /* define if the compiler has hash_map */ |
| 95 #define HAVE_HASH_MAP 1 |
| 96 |
| 97 /* define if the compiler has hash_set */ |
| 98 #define HAVE_HASH_SET 1 |
| 99 |
68 /* Define to 1 if you have the <inttypes.h> header file. */ | 100 /* Define to 1 if you have the <inttypes.h> header file. */ |
69 #undef HAVE_INTTYPES_H | 101 #undef HAVE_INTTYPES_H |
70 | 102 |
71 /* Define to 1 if you have the <libunwind.h> header file. */ | 103 /* Define to 1 if you have the <libunwind.h> header file. */ |
72 #undef HAVE_LIBUNWIND_H | 104 #undef HAVE_LIBUNWIND_H |
73 | 105 |
74 /* Define to 1 if you have the <linux/ptrace.h> header file. */ | 106 /* Define to 1 if you have the <linux/ptrace.h> header file. */ |
75 #undef HAVE_LINUX_PTRACE_H | 107 #undef HAVE_LINUX_PTRACE_H |
76 | 108 |
77 /* Define to 1 if you have the <malloc.h> header file. */ | 109 /* Define to 1 if you have the <malloc.h> header file. */ |
78 #undef HAVE_MALLOC_H | 110 #undef HAVE_MALLOC_H |
79 | 111 |
80 /* Define to 1 if you have the <malloc/malloc.h> header file. */ | 112 /* Define to 1 if you have the <malloc/malloc.h> header file. */ |
81 #undef HAVE_MALLOC_MALLOC_H | 113 #undef HAVE_MALLOC_MALLOC_H |
82 | 114 |
83 /* Define to 1 if you have the <memory.h> header file. */ | 115 /* Define to 1 if you have the <memory.h> header file. */ |
84 #undef HAVE_MEMORY_H | 116 #undef HAVE_MEMORY_H |
85 | 117 |
86 /* Define to 1 if you have a working `mmap' system call. */ | 118 /* Define to 1 if you have a working `mmap' system call. */ |
87 #undef HAVE_MMAP | 119 #undef HAVE_MMAP |
88 | 120 |
89 /* define if the compiler implements namespaces */ | 121 /* define if the compiler implements namespaces */ |
90 #undef HAVE_NAMESPACES | 122 #define HAVE_NAMESPACES 1 |
91 | 123 |
92 /* Define to 1 if you have the <poll.h> header file. */ | 124 /* Define to 1 if you have the <poll.h> header file. */ |
93 #undef HAVE_POLL_H | 125 #undef HAVE_POLL_H |
94 | 126 |
95 /* define if libc has program_invocation_name */ | 127 /* define if libc has program_invocation_name */ |
96 #undef HAVE_PROGRAM_INVOCATION_NAME | 128 #undef HAVE_PROGRAM_INVOCATION_NAME |
97 | 129 |
98 /* Define if you have POSIX threads libraries and header files. */ | 130 /* Define if you have POSIX threads libraries and header files. */ |
99 #undef HAVE_PTHREAD | 131 #undef HAVE_PTHREAD |
100 | 132 |
101 /* Define to 1 if you have the <pwd.h> header file. */ | 133 /* Define to 1 if you have the <pwd.h> header file. */ |
102 #undef HAVE_PWD_H | 134 #undef HAVE_PWD_H |
103 | 135 |
104 /* Define to 1 if you have the `sbrk' function. */ | 136 /* Define to 1 if you have the `sbrk' function. */ |
105 #undef HAVE_SBRK | 137 #undef HAVE_SBRK |
106 | |
107 /* Define to 1 if you have the <sched.h> header file. */ | 138 /* Define to 1 if you have the <sched.h> header file. */ |
108 #undef HAVE_SCHED_H | 139 #undef HAVE_SCHED_H |
109 | 140 |
110 /* Define to 1 if you have the <stdint.h> header file. */ | 141 /* Define to 1 if you have the <stdint.h> header file. */ |
111 #undef HAVE_STDINT_H | 142 #undef HAVE_STDINT_H |
112 | 143 |
113 /* Define to 1 if you have the <stdlib.h> header file. */ | 144 /* Define to 1 if you have the <stdlib.h> header file. */ |
114 #undef HAVE_STDLIB_H | 145 #define HAVE_STDLIB_H 1 |
115 | 146 |
116 /* Define to 1 if you have the <strings.h> header file. */ | 147 /* Define to 1 if you have the <strings.h> header file. */ |
117 #undef HAVE_STRINGS_H | 148 #undef HAVE_STRINGS_H |
118 | 149 |
119 /* Define to 1 if you have the <string.h> header file. */ | 150 /* Define to 1 if you have the <string.h> header file. */ |
120 #undef HAVE_STRING_H | 151 #define HAVE_STRING_H 1 |
121 | 152 |
122 /* Define to 1 if the system has the type `struct mallinfo'. */ | 153 /* Define to 1 if the system has the type `struct mallinfo'. */ |
123 #undef HAVE_STRUCT_MALLINFO | 154 #undef HAVE_STRUCT_MALLINFO |
124 | 155 |
125 /* Define to 1 if you have the <sys/cdefs.h> header file. */ | 156 /* Define to 1 if you have the <sys/cdefs.h> header file. */ |
126 #undef HAVE_SYS_CDEFS_H | 157 #undef HAVE_SYS_CDEFS_H |
127 | 158 |
128 /* Define to 1 if you have the <sys/malloc.h> header file. */ | 159 /* Define to 1 if you have the <sys/malloc.h> header file. */ |
129 #undef HAVE_SYS_MALLOC_H | 160 #undef HAVE_SYS_MALLOC_H |
130 | 161 |
131 /* Define to 1 if you have the <sys/param.h> header file. */ | 162 /* Define to 1 if you have the <sys/param.h> header file. */ |
132 #undef HAVE_SYS_PARAM_H | 163 #undef HAVE_SYS_PARAM_H |
133 | 164 |
134 /* Define to 1 if you have the <sys/prctl.h> header file. */ | 165 /* Define to 1 if you have the <sys/prctl.h> header file. */ |
135 #undef HAVE_SYS_PRCTL_H | 166 #undef HAVE_SYS_PRCTL_H |
136 | 167 |
137 /* Define to 1 if you have the <sys/resource.h> header file. */ | 168 /* Define to 1 if you have the <sys/resource.h> header file. */ |
138 #undef HAVE_SYS_RESOURCE_H | 169 #undef HAVE_SYS_RESOURCE_H |
139 | 170 |
140 /* Define to 1 if you have the <sys/socket.h> header file. */ | 171 /* Define to 1 if you have the <sys/socket.h> header file. */ |
141 #undef HAVE_SYS_SOCKET_H | 172 #undef HAVE_SYS_SOCKET_H |
142 | 173 |
143 /* Define to 1 if you have the <sys/stat.h> header file. */ | 174 /* Define to 1 if you have the <sys/stat.h> header file. */ |
144 #undef HAVE_SYS_STAT_H | 175 #define HAVE_SYS_STAT_H 1 |
145 | 176 |
146 /* Define to 1 if you have the <sys/syscall.h> header file. */ | 177 /* Define to 1 if you have the <sys/syscall.h> header file. */ |
147 #undef HAVE_SYS_SYSCALL_H | 178 #undef HAVE_SYS_SYSCALL_H |
148 | 179 |
| 180 /* Define to 1 if you have the <sys/time.h> header file. */ |
| 181 #undef HAVE_SYS_TIME_H |
| 182 |
149 /* Define to 1 if you have the <sys/types.h> header file. */ | 183 /* Define to 1 if you have the <sys/types.h> header file. */ |
150 #undef HAVE_SYS_TYPES_H | 184 #define HAVE_SYS_TYPES_H 1 |
151 | 185 |
152 /* <sys/ucontext.h> is broken on redhat 7 */ | 186 /* <sys/ucontext.h> is broken on redhat 7 */ |
153 #undef HAVE_SYS_UCONTEXT_H | 187 #undef HAVE_SYS_UCONTEXT_H |
154 | 188 |
155 /* Define to 1 if you have the <sys/wait.h> header file. */ | 189 /* Define to 1 if you have the <sys/wait.h> header file. */ |
156 #undef HAVE_SYS_WAIT_H | 190 #undef HAVE_SYS_WAIT_H |
157 | 191 |
158 /* Define to 1 if compiler supports __thread */ | 192 /* Define to 1 if compiler supports __thread */ |
159 #undef HAVE_TLS | 193 #undef HAVE_TLS |
160 | 194 |
161 /* Define to 1 if you have the <ucontext.h> header file. */ | 195 /* Define to 1 if you have the <ucontext.h> header file. */ |
162 #undef HAVE_UCONTEXT_H | 196 #undef HAVE_UCONTEXT_H |
163 | 197 |
164 /* Define to 1 if you have the <unistd.h> header file. */ | 198 /* Define to 1 if you have the <unistd.h> header file. */ |
165 #undef HAVE_UNISTD_H | 199 #undef HAVE_UNISTD_H |
166 | 200 |
167 /* Define to 1 if you have the <unwind.h> header file. */ | 201 /* Define to 1 if you have the <unwind.h> header file. */ |
168 #undef HAVE_UNWIND_H | 202 #undef HAVE_UNWIND_H |
169 | 203 |
170 /* Define to 1 if you have the <valgrind.h> header file. */ | |
171 #undef HAVE_VALGRIND_H | |
172 | |
173 /* define if your compiler has __attribute__ */ | 204 /* define if your compiler has __attribute__ */ |
174 #undef HAVE___ATTRIBUTE__ | 205 #undef HAVE___ATTRIBUTE__ |
175 | 206 |
176 /* Define to 1 if compiler supports __environ */ | 207 /* Define to 1 if compiler supports __environ */ |
177 #undef HAVE___ENVIRON | 208 #undef HAVE___ENVIRON |
178 | 209 |
179 /* Define to 1 if the system has the type `__int64'. */ | 210 /* Define to 1 if the system has the type `__int64'. */ |
180 #undef HAVE___INT64 | 211 #define HAVE___INT64 1 |
181 | 212 |
182 /* prefix where we look for installed files */ | 213 /* prefix where we look for installed files */ |
183 #undef INSTALL_PREFIX | 214 #undef INSTALL_PREFIX |
184 | 215 |
185 /* Define to 1 if int32_t is equivalent to intptr_t */ | 216 /* Define to 1 if int32_t is equivalent to intptr_t */ |
186 #undef INT32_EQUALS_INTPTR | 217 #undef INT32_EQUALS_INTPTR |
187 | 218 |
188 /* Define to the sub-directory in which libtool stores uninstalled libraries. | 219 /* Define to the sub-directory in which libtool stores uninstalled libraries. |
189 */ | 220 */ |
190 #undef LT_OBJDIR | 221 #undef LT_OBJDIR |
(...skipping 23 matching lines...) Expand all Loading... |
214 #undef PACKAGE_VERSION | 245 #undef PACKAGE_VERSION |
215 | 246 |
216 /* How to access the PC from a struct ucontext */ | 247 /* How to access the PC from a struct ucontext */ |
217 #undef PC_FROM_UCONTEXT | 248 #undef PC_FROM_UCONTEXT |
218 | 249 |
219 /* Always the empty-string on non-windows systems. On windows, should be | 250 /* Always the empty-string on non-windows systems. On windows, should be |
220 "__declspec(dllexport)". This way, when we compile the dll, we export our | 251 "__declspec(dllexport)". This way, when we compile the dll, we export our |
221 functions/classes. It's safe to define this here because config.h is only | 252 functions/classes. It's safe to define this here because config.h is only |
222 used internally, to compile the DLL, and every DLL source file #includes | 253 used internally, to compile the DLL, and every DLL source file #includes |
223 "config.h" before anything else. */ | 254 "config.h" before anything else. */ |
224 #undef PERFTOOLS_DLL_DECL | 255 #ifndef PERFTOOLS_DLL_DECL |
| 256 # define PERFTOOLS_IS_A_DLL 1 /* not set if you're statically linking */ |
| 257 # define PERFTOOLS_DLL_DECL __declspec(dllexport) |
| 258 # define PERFTOOLS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport) |
| 259 #endif |
225 | 260 |
226 /* printf format code for printing a size_t and ssize_t */ | 261 /* printf format code for printing a size_t and ssize_t */ |
227 #undef PRIdS | 262 #define PRIdS "Id" |
228 | 263 |
229 /* printf format code for printing a size_t and ssize_t */ | 264 /* printf format code for printing a size_t and ssize_t */ |
230 #undef PRIuS | 265 #define PRIuS "Iu" |
231 | 266 |
232 /* printf format code for printing a size_t and ssize_t */ | 267 /* printf format code for printing a size_t and ssize_t */ |
233 #undef PRIxS | 268 #define PRIxS "Ix" |
234 | 269 |
235 /* Define to necessary symbol if this constant uses a non-standard name on | 270 /* Define to necessary symbol if this constant uses a non-standard name on |
236 your system. */ | 271 your system. */ |
237 #undef PTHREAD_CREATE_JOINABLE | 272 #undef PTHREAD_CREATE_JOINABLE |
238 | 273 |
239 /* Define to 1 if you have the ANSI C header files. */ | 274 /* Define to 1 if you have the ANSI C header files. */ |
240 #undef STDC_HEADERS | 275 #define STDC_HEADERS 1 |
241 | 276 |
242 /* the namespace where STL code like vector<> is defined */ | 277 /* the namespace where STL code like vector<> is defined */ |
243 #undef STL_NAMESPACE | 278 #define STL_NAMESPACE std |
244 | 279 |
245 /* Version number of package */ | 280 /* Version number of package */ |
246 #undef VERSION | 281 #undef VERSION |
247 | 282 |
248 /* C99 says: define this to get the PRI... macros from stdint.h */ | 283 /* C99 says: define this to get the PRI... macros from stdint.h */ |
249 #ifndef __STDC_FORMAT_MACROS | 284 #ifndef __STDC_FORMAT_MACROS |
250 # define __STDC_FORMAT_MACROS 1 | 285 # define __STDC_FORMAT_MACROS 1 |
251 #endif | 286 #endif |
252 | 287 |
253 /* Define to `__inline__' or `__inline' if that's what the C compiler | 288 /* Define to `__inline__' or `__inline' if that's what the C compiler |
254 calls it, or to nothing if 'inline' is not supported under any name. */ | 289 calls it, or to nothing if 'inline' is not supported under any name. */ |
255 #ifndef __cplusplus | 290 #ifndef __cplusplus |
256 #undef inline | 291 #undef inline |
257 #endif | 292 #endif |
258 | 293 |
| 294 // --------------------------------------------------------------------- |
| 295 // Extra stuff not found in config.h.in |
259 | 296 |
260 #ifdef __MINGW32__ | 297 // This must be defined before the windows.h is included. We need at |
261 #include "windows/mingw.h" | 298 // least 0x0400 for mutex.h to have access to TryLock, and at least |
| 299 // 0x0501 for patch_functions.cc to have access to GetModuleHandleEx. |
| 300 // (This latter is an optimization we could take out if need be.) |
| 301 #ifndef _WIN32_WINNT |
| 302 # define _WIN32_WINNT 0x0501 |
262 #endif | 303 #endif |
263 | 304 |
264 #endif /* #ifndef GOOGLE_PERFTOOLS_CONFIG_H_ */ | 305 // We want to make sure not to ever try to #include heap-checker.h |
| 306 #define NO_HEAP_CHECK 1 |
265 | 307 |
| 308 // TODO(csilvers): include windows/port.h in every relevant source file instead? |
| 309 #include "windows/port.h" |
| 310 |
| 311 #endif /* GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ */ |
OLD | NEW |