1 /* config.h. Generated from config.h.in by configure. */
2 /*
3 * "$Id: config.h.in 408 2010-09-19 05:26:46Z mike $"
4 *
5 * Configuration file for Mini-XML, a small XML-like file parsing library.
6 *
7 * Copyright 2003-2010 by Michael R Sweet.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Michael R Sweet and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "COPYING"
12 * which should have been included with this file. If this file is
13 * missing or damaged, see the license at:
14 *
15 * http://www.minixml.org/
16 */
18 /*
19 * Include necessary headers...
20 */
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <string.h>
25 #include <stdarg.h>
26 #include <ctype.h>
29 /*
30 * Version number...
31 */
33 #define MXML_VERSION "Mini-XML v2.7"
36 /*
37 * Inline function support...
38 */
40 #define inline
43 /*
44 * Long long support...
45 */
47 #define HAVE_LONG_LONG 1
50 /*
51 * Do we have the snprintf() and vsnprintf() functions?
52 */
54 #define HAVE_SNPRINTF 1
55 #define HAVE_VSNPRINTF 1
58 /*
59 * Do we have the strXXX() functions?
60 */
62 #define HAVE_STRDUP 1
65 /*
66 * Do we have threading support?
67 */
69 #define HAVE_PTHREAD_H 1
72 /*
73 * Define prototypes for string functions as needed...
74 */
76 # ifndef HAVE_STRDUP
77 extern char *_mxml_strdup(const char *);
78 # define strdup _mxml_strdup
79 # endif /* !HAVE_STRDUP */
81 extern char *_mxml_strdupf(const char *, ...);
82 extern char *_mxml_vstrdupf(const char *, va_list);
84 # ifndef HAVE_SNPRINTF
85 extern int _mxml_snprintf(char *, size_t, const char *, ...);
86 # define snprintf _mxml_snprintf
87 # endif /* !HAVE_SNPRINTF */
89 # ifndef HAVE_VSNPRINTF
90 extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
91 # define vsnprintf _mxml_vsnprintf
92 # endif /* !HAVE_VSNPRINTF */
94 /*
95 * End of "$Id: config.h.in 408 2010-09-19 05:26:46Z mike $".
96 */