validate 'len' argument properly for the case that input string is not
[platform/upstream/glib.git] / config.h.win32.in
1 /* config.h.win32.in Merged from two versions generated by configure for gcc and MSVC.  */
2 /* config.h.in.  Generated from configure.in by autoheader.  */
3 /* GLIB - Library of useful routines for C programming
4  * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 /* acconfig.h
22    This file is in the public domain.
23
24    Descriptive text for the C preprocessor macros that
25    the distributed Autoconf macros can define.
26    No software package will use all of them; autoheader copies the ones
27    your configure.in uses into your configuration header file templates.
28
29    The entries are in sort -df order: alphabetical, case insensitive,
30    ignoring punctuation (such as underscores).  Although this order
31    can split up related entries, it makes it easier to check whether
32    a given entry is in the file.
33
34    Leave the following blank line there!!  Autoheader needs it.  */
35 \f
36
37 /* Other stuff */
38
39 /* #undef PACKAGE */
40 /* #undef VERSION */
41
42 \f
43 /* Leave that blank line there!!  Autoheader needs it.
44    If you're adding to this file, keep in mind:
45    The entries are in sort -df order: alphabetical, case insensitive,
46    ignoring punctuation (such as underscores).  */
47
48 #define ENABLE_NLS 1
49 #define GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
50 #define GLIB_LOCALE_DIR "NONE/lib/locale"
51 #define HAVE_GETTEXT 1
52 /* #undef HAVE_LC_MESSAGES */
53 #ifndef _MSC_VER
54 #define SANE_MALLOC_PROTOS 1
55 #else /* _MSC_VER */
56 /* #undef SANE_MALLOC_PROTOS */
57 #endif /* _MSC_VER */
58 #define USE_LIBICONV_GNU Using GNU libiconv
59 /* #undef USE_LIBICONV_NATIVE */
60
61 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
62    systems. This function is required for `alloca.c' support on those systems.
63    */
64 /* #undef CRAY_STACKSEG_END */
65
66 /* Define if using `alloca.c'. */
67 /* #undef C_ALLOCA */
68
69 /* Whether to disable memory pools */
70 /* #undef DISABLE_MEM_POOLS */
71
72 /* Whether to enable GC friendliness */
73 /* #undef ENABLE_GC_FRIENDLY */
74
75 /* Define to the GLIB binary age */
76 #define GLIB_BINARY_AGE @GLIB_BINARY_AGE@
77
78 /* Byte contents of gmutex */
79 /* #undef GLIB_BYTE_CONTENTS_GMUTEX */
80
81 /* Define to the GLIB interface age */
82 #define GLIB_INTERFACE_AGE @GLIB_INTERFACE_AGE@
83
84 /* Define to the GLIB major version */
85 #define GLIB_MAJOR_VERSION @GLIB_MAJOR_VERSION@
86
87 /* Define to the GLIB micro version */
88 #define GLIB_MICRO_VERSION @GLIB_MICRO_VERSION@
89
90 /* Define to the GLIB minor version */
91 #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
92
93 /* Size of gmutex */
94 /* #undef GLIB_SIZEOF_GMUTEX */
95
96 /* Size of intmax_t */
97 #ifndef _MSC_VER
98 #define GLIB_SIZEOF_INTMAX_T 8
99 #else /* _MSC_VER */
100 #define GLIB_SIZEOF_INTMAX_T 0
101 #endif /* _MSC_VER */
102
103 /* Size of ptrdiff_t */
104 #define GLIB_SIZEOF_PTRDIFF_T 4
105
106 /* Size of size_t */
107 #define GLIB_SIZEOF_SIZE_T 4
108
109 /* Size of system_thread */
110 #define GLIB_SIZEOF_SYSTEM_THREAD 4
111
112 /* Whether glib was compiled with debugging enabled */
113 #define G_COMPILED_WITH_DEBUGGING "yes"
114
115 /* Have inline keyword */
116 #ifndef _MSC_VER
117 #define G_HAVE_INLINE 1
118 #else /* _MSC_VER */
119 /* #undef G_HAVE_INLINE */
120 #endif /* _MSC_VER */
121
122 /* Have __inline keyword */
123 #define G_HAVE___INLINE 1
124
125 /* Have __inline__ keyword */
126 #ifndef _MSC_VER
127 #define G_HAVE___INLINE__ 1
128 #else /* _MSC_VER */
129 /* #undef G_HAVE___INLINE__ */
130 #endif /* _MSC_VER */
131
132 /* Source file containing theread implementation */
133 #define G_THREAD_SOURCE "gthread-win32.c"
134
135 /* whether to use the PID niceness surrogate for thread priorities */
136 /* #undef G_THREAD_USE_PID_SURROGATE */
137
138 /* A 'va_copy' style function */
139 /* #undef G_VA_COPY */
140
141 /* 'va_lists' cannot be copies as values */
142 /* #undef G_VA_COPY_AS_ARRAY */
143
144 /* Define if you have `alloca', as a function or macro. */
145 #define HAVE_ALLOCA 1
146
147 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
148 /* #undef HAVE_ALLOCA_H */
149
150 /* Define if you have the <argz.h> header file. */
151 /* #undef HAVE_ARGZ_H */
152
153 /* Define if you have the `atexit' function. */
154 #define HAVE_ATEXIT 1
155
156 /* Define if you have the `bind_textdomain_codeset' function. */
157 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
158
159 /* Define if you have a version of the vsnprintf function with semantics as
160    specified by the ISO C99 standard. */
161 /* #undef HAVE_C99_VSNPRINTF */
162
163 /* Have nl_langinfo (CODESET) */
164 /* #undef HAVE_CODESET */
165
166 /* Define if you have the `dcgettext' function. */
167 #define HAVE_DCGETTEXT 1
168
169 /* Define if you have the <dirent.h> header file. */
170 #define HAVE_DIRENT_H 1
171
172 /* Define if you have the <dlfcn.h> header file. */
173 /* #undef HAVE_DLFCN_H */
174
175 /* Define if you don't have `vprintf' but do have `_doprnt.' */
176 /* #undef HAVE_DOPRNT */
177
178 /* Define if you have the <float.h> header file. */
179 #define HAVE_FLOAT_H 1
180
181 /* Define if you have the `getcwd' function. */
182 #define HAVE_GETCWD 1
183
184 /* Define if you have the `getc_unlocked' function. */
185 /* #undef HAVE_GETC_UNLOCKED */
186
187 /* Define if you have the `getpagesize' function. */
188 #ifndef _MSC_VER
189 #define HAVE_GETPAGESIZE 1
190 #else /* _MSC_VER */
191 /* #undef HAVE_GETPAGESIZE */
192 #endif /* _MSC_VER */
193
194 /* Define if you have the <inttypes.h> header file. */
195 /* #undef HAVE_INTTYPES_H */
196
197 /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
198 /* #undef HAVE_LANGINFO_CODESET */
199
200 /* Define if you have the <langinfo.h> header file. */
201 /* #undef HAVE_LANGINFO_H */
202
203 /* Define if your <locale.h> file defines LC_MESSAGES. */
204 /* #undef HAVE_LC_MESSAGES */
205
206 /* Define if you have the <limits.h> header file. */
207 #define HAVE_LIMITS_H 1
208
209 /* Define if you have the <locale.h> header file. */
210 #define HAVE_LOCALE_H 1
211
212 /* Define if you have the `localtime_r' function. */
213 /* #undef HAVE_LOCALTIME_R */
214
215 /* Define if you have the `lstat' function. */
216 /* #undef HAVE_LSTAT */
217
218 /* Define if you have the <malloc.h> header file. */
219 #define HAVE_MALLOC_H 1
220
221 /* Define if you have the `memmove' function. */
222 #define HAVE_MEMMOVE 1
223
224 /* Define if you have the <memory.h> header file. */
225 #define HAVE_MEMORY_H 1
226
227 /* Define if you have the `mkstemp' function. */
228 /* #undef HAVE_MKSTEMP */
229
230 /* Define if you have a working `mmap' system call. */
231 /* #undef HAVE_MMAP */
232
233 /* Define if you have the `munmap' function. */
234 /* #undef HAVE_MUNMAP */
235
236 /* Define if you have the `nanosleep' function. */
237 /* #undef HAVE_NANOSLEEP */
238
239 /* Define if you have the `nl_langinfo' function. */
240 /* #undef HAVE_NL_LANGINFO */
241
242 /* Define if you have the <nl_types.h> header file. */
243 /* #undef HAVE_NL_TYPES_H */
244
245 /* Have non-POSIX function getpwuid_r */
246 /* #undef HAVE_NONPOSIX_GETPWUID_R */
247
248 /* Define if you have the `on_exit' function. */
249 /* #undef HAVE_ON_EXIT */
250
251 /* Define if you have the `poll' function. */
252 /* #undef HAVE_POLL */
253
254 /* Have POSIX function getpwuid_r */
255 /* #undef HAVE_POSIX_GETPWUID_R */
256
257 /* Have function pthread_attr_setstacksize */
258 /* #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE */
259
260 /* Define if you have the `putenv' function. */
261 #define HAVE_PUTENV 1
262
263 /* Define if you have the <pwd.h> header file. */
264 /* #undef HAVE_PWD_H */
265
266 /* Define if you have the <sched.h> header file. */
267 /* #undef HAVE_SCHED_H */
268
269 /* Define if you have the `setenv' function. */
270 /* #undef HAVE_SETENV */
271
272 /* Define if you have the `setlocale' function. */
273 #define HAVE_SETLOCALE 1
274
275 /* Define if you have the <stddef.h> header file. */
276 #define HAVE_STDDEF_H 1
277
278 /* Define if you have the <stdint.h> header file. */
279 #ifndef _MSC_VER
280 #define HAVE_STDINT_H 1
281 #else /* _MSC_VER */
282 /* #undef HAVE_STDINT_H */
283 #endif /* _MSC_VER */
284
285 /* Define if you have the <stdlib.h> header file. */
286 #define HAVE_STDLIB_H 1
287
288 /* Define if you have the `stpcpy' function. */
289 /* #undef HAVE_STPCPY */
290
291 /* Define if you have the `strcasecmp' function. */
292 #ifndef _MSC_VER
293 #define HAVE_STRCASECMP 1
294 #else /* _MSC_VER */
295 /* #undef HAVE_STRCASECMP */
296 #endif /* _MSC_VER */
297
298 /* Define if you have the `strchr' function. */
299 #define HAVE_STRCHR 1
300
301 /* Define if you have the `strdup' function. */
302 #define HAVE_STRDUP 1
303
304 /* Define if you have the `strerror' function. */
305 #define HAVE_STRERROR 1
306
307 /* Define if you have the <strings.h> header file. */
308 /* #undef HAVE_STRINGS_H */
309
310 /* Define if you have the <string.h> header file. */
311 #define HAVE_STRING_H 1
312
313 /* Have functions strlcpy and strlcat */
314 /* #undef HAVE_STRLCPY */
315
316 /* Define if you have the `strncasecmp' function. */
317 #ifndef _MSC_VER
318 #define HAVE_STRNCASECMP 1
319 #else /* _MSC_VER */
320 /* #undef HAVE_STRNCASECMP */
321 #endif /* _MSC_VER */
322
323 /* Define if you have the `strsignal' function. */
324 /* #undef HAVE_STRSIGNAL */
325
326 /* Define if you have the <sys/param.h> header file. */
327 /* #undef HAVE_SYS_PARAM_H */
328
329 /* Define if you have the <sys/poll.h> header file. */
330 /* #undef HAVE_SYS_POLL_H */
331
332 /* found fd_set in sys/select.h */
333 /* #undef HAVE_SYS_SELECT_H */
334
335 /* Define if you have the <sys/stat.h> header file. */
336 #define HAVE_SYS_STAT_H 1
337
338 /* Define if you have the <sys/times.h> header file. */
339 /* #undef HAVE_SYS_TIMES_H */
340
341 /* Define if you have the <sys/time.h> header file. */
342 #ifndef _MSC_VER
343 #define HAVE_SYS_TIME_H 1
344 #else /* _MSC_VER */
345 /* #undef HAVE_SYS_TIME_H */
346 #endif /* _MSC_VER */
347
348 /* Define if you have the <sys/types.h> header file. */
349 #define HAVE_SYS_TYPES_H 1
350
351 /* Define if you have the <unistd.h> header file. */
352 #ifndef _MSC_VER
353 #define HAVE_UNISTD_H 1
354 #else /* _MSC_VER */
355 /* #undef HAVE_UNISTD_H */
356 #endif /* _MSC_VER */
357
358 /* Define if you have the `unsetenv' function. */
359 /* #undef HAVE_UNSETENV */
360
361 /* Define if you have the <values.h> header file. */
362 #ifndef _MSC_VER
363 #define HAVE_VALUES_H 1
364 #else /* _MSC_VER */
365 /* #undef HAVE_VALUES_H */
366 #endif /* _MSC_VER */
367
368 /* Define if you have the `vasprintf' function. */
369 /* #undef HAVE_VASPRINTF */
370
371 /* Define if you have the `vprintf' function. */
372 #define HAVE_VPRINTF 1
373
374 /* Define if you have the `vsnprintf' function. */
375 /* #undef HAVE_VSNPRINTF */
376
377 /* Have a working bcopy */
378 /* #undef HAVE_WORKING_BCOPY */
379
380 /* Define if you have the `__argz_count' function. */
381 /* #undef HAVE___ARGZ_COUNT */
382
383 /* Define if you have the `__argz_next' function. */
384 /* #undef HAVE___ARGZ_NEXT */
385
386 /* Define if you have the `__argz_stringify' function. */
387 /* #undef HAVE___ARGZ_STRINGIFY */
388
389 /* didn't find fd_set */
390 #define NO_FD_SET 1
391
392 /* global 'sys_errlist' not found */
393 #define NO_SYS_ERRLIST 1
394
395 /* global 'sys_siglist' not found */
396 #define NO_SYS_SIGLIST 1
397
398 /* global 'sys_siglist' not declared */
399 #define NO_SYS_SIGLIST_DECL 1
400
401 /* Maximum POSIX RT priority */
402 /* #undef POSIX_MAX_PRIORITY */
403
404 /* Minimum POSIX RT priority */
405 /* #undef POSIX_MIN_PRIORITY */
406
407 /* The POSIX RT yield function */
408 /* #undef POSIX_YIELD_FUNC */
409
410 /* whether realloc (NULL,) works */
411 #define REALLOC_0_WORKS 1
412
413 /* The size of a `char', as computed by sizeof. */
414 #define SIZEOF_CHAR 1
415
416 /* The size of a `int', as computed by sizeof. */
417 #define SIZEOF_INT 4
418
419 /* The size of a `long', as computed by sizeof. */
420 #define SIZEOF_LONG 4
421
422 /* The size of a `long long', as computed by sizeof. */
423 #ifndef _MSC_VER
424 #define SIZEOF_LONG_LONG 8
425 #else /* _MSC_VER */
426 #define SIZEOF_LONG_LONG 0
427 #endif /* _MSC_VER */
428
429 /* The size of a `short', as computed by sizeof. */
430 #define SIZEOF_SHORT 2
431
432 /* The size of a `void *', as computed by sizeof. */
433 #define SIZEOF_VOID_P 4
434
435 /* The size of a `__int64', as computed by sizeof. */
436 #define SIZEOF___INT64 8
437
438 /* If using the C implementation of alloca, define if you know the
439    direction of stack growth for your system; otherwise it will be
440    automatically deduced at run-time.
441         STACK_DIRECTION > 0 => grows toward higher addresses
442         STACK_DIRECTION < 0 => grows toward lower addresses
443         STACK_DIRECTION = 0 => direction of growth unknown */
444 /* #undef STACK_DIRECTION */
445
446 /* Define if you have the ANSI C header files. */
447 #define STDC_HEADERS 1
448
449 /* Define if your processor stores words with the most significant byte first
450    (like Motorola and SPARC, unlike Intel and VAX). */
451 /* #undef WORDS_BIGENDIAN */
452
453 /* Number of bits in a file offset, on hosts where this is settable. */
454 /* #undef _FILE_OFFSET_BITS */
455
456 /* Define for large files, on AIX-style hosts. */
457 /* #undef _LARGE_FILES */
458
459 /* Define to empty if `const' does not conform to ANSI C. */
460 /* #undef const */
461
462 /* Define as `__inline' if that's what the C compiler calls it, or to nothing
463    if it is not supported. */
464 #ifndef _MSC_VER
465 /* #undef inline */
466 #else /* _MSC_VER */
467 #define inline __inline
468 #endif /* _MSC_VER */
469
470 /* Define to `long' if <sys/types.h> does not define. */
471 /* #undef off_t */
472
473 /* Define to `unsigned' if <sys/types.h> does not define. */
474 /* #undef size_t */