~ubuntu-branches/ubuntu/jaunty/google-perftools/jaunty

« back to all changes in this revision

Viewing changes to src/windows/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2008-06-15 23:41:36 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20080615234136-al5gawvdvt5vhdtz
Tags: 0.98-1
* New upstream release. (Closes: #425147)
* Compiled with GCC 4.3. (Closes: #454841)
* debian/watch: can now report upstream's version (Closes: #450294)
* Because of a file conflict between tau and libgoogle-perftools the
  binary pprof is renamed as google-pprof. (Closes: #404001)
  Great thanks to Michael Mende.
* debian/rules: autoconf files are now generated at the build time.
* Bumped up Standards-Version to 3.7.3, no changes are required.
* Split a new package, libtcmallc_minimal0. The upstream supports
  this module for wider platforms. So I leave its architecture to be
  `any'.
* libgoogle-perftools0's architecture is now i386. The upstream
  supports this module for x86 and x86_64. However, x86_64 requires
  libunwind's development head, which Debian does not have yet.
* Removed an unnecessary patch, debian/patches/02_profiler.cc_alpha.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* A manual version of config.h fit for windows machines. */
 
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
 
11
 
 
12
#ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
 
13
#define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
 
14
 
 
15
/* the location of <hash_map> */
 
16
#define HASH_MAP_H  <hash_map>
 
17
 
 
18
/* the namespace of hash_map/hash_set */
 
19
#define HASH_NAMESPACE  stdext
 
20
 
 
21
/* the location of <hash_set> */
 
22
#define HASH_SET_H  <hash_set>
 
23
 
 
24
/* Define to 1 if compiler supports __builtin_stack_pointer */
 
25
#undef HAVE_BUILTIN_STACK_POINTER
 
26
 
 
27
/* Define to 1 if you have the <conflict-signal.h> header file. */
 
28
#undef HAVE_CONFLICT_SIGNAL_H
 
29
 
 
30
/* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
 
31
   */
 
32
#undef HAVE_DECL_CFREE
 
33
 
 
34
/* Define to 1 if you have the declaration of `memalign', and to 0 if you
 
35
   don't. */
 
36
#undef HAVE_DECL_MEMALIGN
 
37
 
 
38
/* Define to 1 if you have the declaration of `posix_memalign', and to 0 if
 
39
   you don't. */
 
40
#undef HAVE_DECL_POSIX_MEMALIGN
 
41
 
 
42
/* Define to 1 if you have the declaration of `pvalloc', and to 0 if you
 
43
   don't. */
 
44
#undef HAVE_DECL_PVALLOC
 
45
 
 
46
/* Define to 1 if you have the declaration of `uname', and to 0 if you don't.
 
47
   */
 
48
#undef HAVE_DECL_UNAME
 
49
 
 
50
/* Define to 1 if you have the declaration of `valloc', and to 0 if you don't.
 
51
   */
 
52
#undef HAVE_DECL_VALLOC
 
53
 
 
54
/* Define to 1 if you have the <dlfcn.h> header file. */
 
55
#undef HAVE_DLFCN_H
 
56
 
 
57
/* Define to 1 if you have the <execinfo.h> header file. */
 
58
#undef HAVE_EXECINFO_H
 
59
 
 
60
/* Define to 1 if you have the <fcntl.h> header file. */
 
61
#undef HAVE_FCNTL_H
 
62
 
 
63
/* Define to 1 if you have the `geteuid' function. */
 
64
#undef HAVE_GETEUID
 
65
 
 
66
/* Define to 1 if you have the `getpagesize' function. */
 
67
#define HAVE_GETPAGESIZE 1   /* we define it in windows/port.cc */
 
68
 
 
69
/* Define to 1 if you have the <glob.h> header file. */
 
70
#undef HAVE_GLOB_H
 
71
 
 
72
/* Define to 1 if you have the <grp.h> header file. */
 
73
#undef HAVE_GRP_H
 
74
 
 
75
/* define if the compiler has hash_map */
 
76
#define HAVE_HASH_MAP 1
 
77
 
 
78
/* define if the compiler has hash_set */
 
79
#define HAVE_HASH_SET 1
 
80
 
 
81
/* Define to 1 if you have the <inttypes.h> header file. */
 
82
#undef HAVE_INTTYPES_H
 
83
 
 
84
/* Define to 1 if you have the <libunwind.h> header file. */
 
85
#undef HAVE_LIBUNWIND_H
 
86
 
 
87
/* Define to 1 if you have the <linux/ptrace.h> header file. */
 
88
#undef HAVE_LINUX_PTRACE_H
 
89
 
 
90
/* Define to 1 if you have the <malloc.h> header file. */
 
91
#undef HAVE_MALLOC_H
 
92
 
 
93
/* Define to 1 if you have the <memory.h> header file. */
 
94
#undef HAVE_MEMORY_H
 
95
 
 
96
/* Define to 1 if you have a working `mmap' system call. */
 
97
#undef HAVE_MMAP
 
98
 
 
99
/* define if the compiler implements namespaces */
 
100
#define HAVE_NAMESPACES 1
 
101
 
 
102
/* define if libc has program_invocation_name */
 
103
#undef HAVE_PROGRAM_INVOCATION_NAME
 
104
 
 
105
/* Define if you have POSIX threads libraries and header files. */
 
106
#undef HAVE_PTHREAD
 
107
 
 
108
/* Define to 1 if you have the <pwd.h> header file. */
 
109
#undef HAVE_PWD_H
 
110
 
 
111
/* Define to 1 if you have the `sbrk' function. */
 
112
#undef HAVE_SBRK
 
113
 
 
114
/* Define to 1 if you have the <stdint.h> header file. */
 
115
#undef HAVE_STDINT_H
 
116
 
 
117
/* Define to 1 if you have the <stdlib.h> header file. */
 
118
#define HAVE_STDLIB_H 1
 
119
 
 
120
/* Define to 1 if you have the <strings.h> header file. */
 
121
#undef HAVE_STRINGS_H
 
122
 
 
123
/* Define to 1 if you have the <string.h> header file. */
 
124
#define HAVE_STRING_H 1
 
125
 
 
126
/* Define to 1 if the system has the type `struct mallinfo'. */
 
127
#undef HAVE_STRUCT_MALLINFO
 
128
 
 
129
/* Define to 1 if you have the <sys/prctl.h> header file. */
 
130
#undef HAVE_SYS_PRCTL_H
 
131
 
 
132
/* Define to 1 if you have the <sys/resource.h> header file. */
 
133
#undef HAVE_SYS_RESOURCE_H
 
134
 
 
135
/* Define to 1 if you have the <sys/stat.h> header file. */
 
136
#define HAVE_SYS_STAT_H 1
 
137
 
 
138
/* Define to 1 if you have the <sys/syscall.h> header file. */
 
139
#undef HAVE_SYS_SYSCALL_H
 
140
 
 
141
/* Define to 1 if you have the <sys/types.h> header file. */
 
142
#define HAVE_SYS_TYPES_H 1
 
143
 
 
144
/* Define to 1 if compiler supports __thread */
 
145
#define HAVE_TLS 1
 
146
 
 
147
/* Define to 1 if you have the <ucontext.h> header file. */
 
148
#undef HAVE_UCONTEXT_H
 
149
 
 
150
/* Define to 1 if you have the <unistd.h> header file. */
 
151
#undef HAVE_UNISTD_H
 
152
 
 
153
/* Define to 1 if you have the <unwind.h> header file. */
 
154
#undef HAVE_UNWIND_H
 
155
 
 
156
/* define if your compiler has __attribute__ */
 
157
#undef HAVE___ATTRIBUTE__
 
158
 
 
159
/* Define to 1 if the system has the type `__int64'. */
 
160
#define HAVE___INT64 1
 
161
 
 
162
/* prefix where we look for installed files */
 
163
#undef INSTALL_PREFIX
 
164
 
 
165
/* Define to 1 if int32_t is equivalent to intptr_t */
 
166
#undef INT32_EQUALS_INTPTR
 
167
 
 
168
/* Name of package */
 
169
#undef PACKAGE
 
170
 
 
171
/* Define to the address where bug reports for this package should be sent. */
 
172
#undef PACKAGE_BUGREPORT
 
173
 
 
174
/* Define to the full name of this package. */
 
175
#undef PACKAGE_NAME
 
176
 
 
177
/* Define to the full name and version of this package. */
 
178
#undef PACKAGE_STRING
 
179
 
 
180
/* Define to the one symbol short name of this package. */
 
181
#undef PACKAGE_TARNAME
 
182
 
 
183
/* Define to the version of this package. */
 
184
#undef PACKAGE_VERSION
 
185
 
 
186
/* How to access the PC from a struct ucontext */
 
187
#undef PC_FROM_UCONTEXT
 
188
 
 
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)
 
198
#endif
 
199
 
 
200
/* printf format code for printing a size_t and ssize_t */
 
201
#define PRIdS  "Id"
 
202
 
 
203
/* printf format code for printing a size_t and ssize_t */
 
204
#define PRIuS  "Iu"
 
205
 
 
206
/* printf format code for printing a size_t and ssize_t */
 
207
#define PRIxS  "Ix"
 
208
 
 
209
/* Define to necessary symbol if this constant uses a non-standard name on
 
210
   your system. */
 
211
#undef PTHREAD_CREATE_JOINABLE
 
212
 
 
213
/* Define to 1 if you have the ANSI C header files. */
 
214
#define STDC_HEADERS 1
 
215
 
 
216
/* the namespace where STL code like vector<> is defined */
 
217
#define STL_NAMESPACE  std
 
218
 
 
219
/* Version number of package */
 
220
#undef VERSION
 
221
 
 
222
/* C99 says: define this to get the PRI... macros from stdint.h */
 
223
#ifndef __STDC_FORMAT_MACROS
 
224
# define __STDC_FORMAT_MACROS 1
 
225
#endif
 
226
 
 
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.  */
 
229
#ifndef __cplusplus
 
230
#undef inline
 
231
#endif
 
232
 
 
233
// ---------------------------------------------------------------------
 
234
// Extra stuff not found in config.h.in
 
235
 
 
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.
 
238
#ifndef _WIN32_WINNT
 
239
# define _WIN32_WINNT 0x0400
 
240
#endif
 
241
 
 
242
// TODO(csilvers): include windows/port.h in every relevant source file instead?
 
243
#include "windows/port.h"
 
244
 
 
245
#endif  /* GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_ */