1
/* A manual version of config.h fit for windows machines. */
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.
9
#define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
12
#ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
13
#define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
15
/* the location of <hash_map> */
16
#define HASH_MAP_H <hash_map>
18
/* the namespace of hash_map/hash_set */
19
#define HASH_NAMESPACE stdext
21
/* the location of <hash_set> */
22
#define HASH_SET_H <hash_set>
24
/* Define to 1 if compiler supports __builtin_stack_pointer */
25
#undef HAVE_BUILTIN_STACK_POINTER
27
/* Define to 1 if you have the <conflict-signal.h> header file. */
28
#undef HAVE_CONFLICT_SIGNAL_H
30
/* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
32
#undef HAVE_DECL_CFREE
34
/* Define to 1 if you have the declaration of `memalign', and to 0 if you
36
#undef HAVE_DECL_MEMALIGN
38
/* Define to 1 if you have the declaration of `posix_memalign', and to 0 if
40
#undef HAVE_DECL_POSIX_MEMALIGN
42
/* Define to 1 if you have the declaration of `pvalloc', and to 0 if you
44
#undef HAVE_DECL_PVALLOC
46
/* Define to 1 if you have the declaration of `uname', and to 0 if you don't.
48
#undef HAVE_DECL_UNAME
50
/* Define to 1 if you have the declaration of `valloc', and to 0 if you don't.
52
#undef HAVE_DECL_VALLOC
54
/* Define to 1 if you have the <dlfcn.h> header file. */
57
/* Define to 1 if you have the <execinfo.h> header file. */
58
#undef HAVE_EXECINFO_H
60
/* Define to 1 if you have the <fcntl.h> header file. */
63
/* Define to 1 if you have the `geteuid' function. */
66
/* Define to 1 if you have the `getpagesize' function. */
67
#define HAVE_GETPAGESIZE 1 /* we define it in windows/port.cc */
69
/* Define to 1 if you have the <glob.h> header file. */
72
/* Define to 1 if you have the <grp.h> header file. */
75
/* define if the compiler has hash_map */
76
#define HAVE_HASH_MAP 1
78
/* define if the compiler has hash_set */
79
#define HAVE_HASH_SET 1
81
/* Define to 1 if you have the <inttypes.h> header file. */
82
#undef HAVE_INTTYPES_H
84
/* Define to 1 if you have the <libunwind.h> header file. */
85
#undef HAVE_LIBUNWIND_H
87
/* Define to 1 if you have the <linux/ptrace.h> header file. */
88
#undef HAVE_LINUX_PTRACE_H
90
/* Define to 1 if you have the <malloc.h> header file. */
93
/* Define to 1 if you have the <memory.h> header file. */
96
/* Define to 1 if you have a working `mmap' system call. */
99
/* define if the compiler implements namespaces */
100
#define HAVE_NAMESPACES 1
102
/* define if libc has program_invocation_name */
103
#undef HAVE_PROGRAM_INVOCATION_NAME
105
/* Define if you have POSIX threads libraries and header files. */
108
/* Define to 1 if you have the <pwd.h> header file. */
111
/* Define to 1 if you have the `sbrk' function. */
114
/* Define to 1 if you have the <stdint.h> header file. */
117
/* Define to 1 if you have the <stdlib.h> header file. */
118
#define HAVE_STDLIB_H 1
120
/* Define to 1 if you have the <strings.h> header file. */
121
#undef HAVE_STRINGS_H
123
/* Define to 1 if you have the <string.h> header file. */
124
#define HAVE_STRING_H 1
126
/* Define to 1 if the system has the type `struct mallinfo'. */
127
#undef HAVE_STRUCT_MALLINFO
129
/* Define to 1 if you have the <sys/prctl.h> header file. */
130
#undef HAVE_SYS_PRCTL_H
132
/* Define to 1 if you have the <sys/resource.h> header file. */
133
#undef HAVE_SYS_RESOURCE_H
135
/* Define to 1 if you have the <sys/stat.h> header file. */
136
#define HAVE_SYS_STAT_H 1
138
/* Define to 1 if you have the <sys/syscall.h> header file. */
139
#undef HAVE_SYS_SYSCALL_H
141
/* Define to 1 if you have the <sys/types.h> header file. */
142
#define HAVE_SYS_TYPES_H 1
144
/* Define to 1 if compiler supports __thread */
147
/* Define to 1 if you have the <ucontext.h> header file. */
148
#undef HAVE_UCONTEXT_H
150
/* Define to 1 if you have the <unistd.h> header file. */
153
/* Define to 1 if you have the <unwind.h> header file. */
156
/* define if your compiler has __attribute__ */
157
#undef HAVE___ATTRIBUTE__
159
/* Define to 1 if the system has the type `__int64'. */
160
#define HAVE___INT64 1
162
/* prefix where we look for installed files */
163
#undef INSTALL_PREFIX
165
/* Define to 1 if int32_t is equivalent to intptr_t */
166
#undef INT32_EQUALS_INTPTR
168
/* Name of package */
171
/* Define to the address where bug reports for this package should be sent. */
172
#undef PACKAGE_BUGREPORT
174
/* Define to the full name of this package. */
177
/* Define to the full name and version of this package. */
178
#undef PACKAGE_STRING
180
/* Define to the one symbol short name of this package. */
181
#undef PACKAGE_TARNAME
183
/* Define to the version of this package. */
184
#undef PACKAGE_VERSION
186
/* How to access the PC from a struct ucontext */
187
#undef PC_FROM_UCONTEXT
189
/* Always the empty-string on non-windows systems. On windows, should be
190
"__declspec(dllexport)". This way, when we compile the dll, we export our
191
functions/classes. It's safe to define this here because config.h is only
192
used internally, to compile the DLL, and every DLL source file #includes
193
"config.h" before anything else. */
194
#ifndef PERFTOOLS_DLL_DECL
195
# define PERFTOOLS_IS_A_DLL 1 /* not set if you're statically linking */
196
# define PERFTOOLS_DLL_DECL __declspec(dllexport)
197
# define PERFTOOLS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport)
200
/* printf format code for printing a size_t and ssize_t */
203
/* printf format code for printing a size_t and ssize_t */
206
/* printf format code for printing a size_t and ssize_t */
209
/* Define to necessary symbol if this constant uses a non-standard name on
211
#undef PTHREAD_CREATE_JOINABLE
213
/* Define to 1 if you have the ANSI C header files. */
214
#define STDC_HEADERS 1
216
/* the namespace where STL code like vector<> is defined */
217
#define STL_NAMESPACE std
219
/* Version number of package */
222
/* C99 says: define this to get the PRI... macros from stdint.h */
223
#ifndef __STDC_FORMAT_MACROS
224
# define __STDC_FORMAT_MACROS 1
227
/* Define to `__inline__' or `__inline' if that's what the C compiler
228
calls it, or to nothing if 'inline' is not supported under any name. */
233
// ---------------------------------------------------------------------
234
// Extra stuff not found in config.h.in
236
// This must be defined before the windows.h is included. It's needed
237
// for mutex.h, to give access to the TryLock method.
239
# define _WIN32_WINNT 0x0400
242
// TODO(csilvers): include windows/port.h in every relevant source file instead?
243
#include "windows/port.h"
245
#endif /* GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ */