blob: ad6df1d7debec4eccef162f6c9dbcbfd8a655725 [file] [log] [blame]
Jon Medhurstaaf37a32013-06-11 12:10:56 +01001/* config.h. Generated from config.h.in by configure. */
2/*
Jon Medhurst96b56152014-10-30 18:01:15 +00003 * "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $"
Jon Medhurstaaf37a32013-06-11 12:10:56 +01004 *
5 * Configuration file for Mini-XML, a small XML-like file parsing library.
6 *
Jon Medhurst96b56152014-10-30 18:01:15 +00007 * Copyright 2003-2014 by Michael R Sweet.
Jon Medhurstaaf37a32013-06-11 12:10:56 +01008 *
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 *
Jon Medhurst96b56152014-10-30 18:01:15 +000015 * http://www.msweet.org/projects.php/Mini-XML
Jon Medhurstaaf37a32013-06-11 12:10:56 +010016 */
17
18/*
19 * Include necessary headers...
20 */
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <stdarg.h>
26#include <ctype.h>
27
28
29/*
30 * Version number...
31 */
32
Jon Medhurst96b56152014-10-30 18:01:15 +000033#define MXML_VERSION "Mini-XML v2.8"
Jon Medhurstaaf37a32013-06-11 12:10:56 +010034
35
36/*
37 * Inline function support...
38 */
39
40#define inline
41
42
43/*
44 * Long long support...
45 */
46
47#define HAVE_LONG_LONG 1
48
49
50/*
51 * Do we have the snprintf() and vsnprintf() functions?
52 */
53
54#define HAVE_SNPRINTF 1
55#define HAVE_VSNPRINTF 1
56
57
58/*
59 * Do we have the strXXX() functions?
60 */
61
62#define HAVE_STRDUP 1
63
64
65/*
66 * Do we have threading support?
67 */
68
69#define HAVE_PTHREAD_H 1
70
71
72/*
73 * Define prototypes for string functions as needed...
74 */
75
76# ifndef HAVE_STRDUP
77extern char *_mxml_strdup(const char *);
78# define strdup _mxml_strdup
79# endif /* !HAVE_STRDUP */
80
81extern char *_mxml_strdupf(const char *, ...);
82extern char *_mxml_vstrdupf(const char *, va_list);
83
84# ifndef HAVE_SNPRINTF
85extern int _mxml_snprintf(char *, size_t, const char *, ...);
86# define snprintf _mxml_snprintf
87# endif /* !HAVE_SNPRINTF */
88
89# ifndef HAVE_VSNPRINTF
90extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
91# define vsnprintf _mxml_vsnprintf
92# endif /* !HAVE_VSNPRINTF */
93
94/*
Jon Medhurst96b56152014-10-30 18:01:15 +000095 * End of "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $".
Jon Medhurstaaf37a32013-06-11 12:10:56 +010096 */