root / logic / trunk / src / mxml / config.h @ 89
History | View | Annotate | Download (1.85 KB)
1 | 49 | Janez1 | /*
|
---|---|---|---|
2 | * "$Id: config.h.in 387 2009-04-18 17:05:52Z mike $"
|
||
3 | *
|
||
4 | * Configuration file for Mini-XML, a small XML-like file parsing library.
|
||
5 | *
|
||
6 | * Copyright 2003-2009 by Michael Sweet.
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU Library General Public
|
||
10 | * License as published by the Free Software Foundation; either
|
||
11 | * version 2, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | */
|
||
18 | |||
19 | /*
|
||
20 | * Include necessary headers...
|
||
21 | */
|
||
22 | |||
23 | #include <stdio.h> |
||
24 | #include <stdlib.h> |
||
25 | #include <string.h> |
||
26 | #include <stdarg.h> |
||
27 | #include <ctype.h> |
||
28 | |||
29 | |||
30 | /*
|
||
31 | * Version number...
|
||
32 | */
|
||
33 | |||
34 | #define MXML_VERSION "" |
||
35 | |||
36 | |||
37 | /*
|
||
38 | * Inline function support...
|
||
39 | */
|
||
40 | |||
41 | #define inline |
||
42 | |||
43 | |||
44 | /*
|
||
45 | * Long long support...
|
||
46 | */
|
||
47 | |||
48 | #undef HAVE_LONG_LONG
|
||
49 | |||
50 | |||
51 | /*
|
||
52 | * Do we have the snprintf() and vsnprintf() functions?
|
||
53 | */
|
||
54 | |||
55 | #undef HAVE_SNPRINTF
|
||
56 | #undef HAVE_VSNPRINTF
|
||
57 | |||
58 | |||
59 | /*
|
||
60 | * Do we have the strXXX() functions?
|
||
61 | */
|
||
62 | |||
63 | #undef HAVE_STRDUP
|
||
64 | |||
65 | |||
66 | /*
|
||
67 | * Do we have threading support?
|
||
68 | */
|
||
69 | |||
70 | #undef HAVE_PTHREAD_H
|
||
71 | |||
72 | |||
73 | /*
|
||
74 | * Define prototypes for string functions as needed...
|
||
75 | */
|
||
76 | |||
77 | # ifndef HAVE_STRDUP
|
||
78 | extern char *_mxml_strdup(const char *); |
||
79 | # define strdup _mxml_strdup
|
||
80 | # endif /* !HAVE_STRDUP */ |
||
81 | |||
82 | extern char *_mxml_strdupf(const char *, ...); |
||
83 | extern char *_mxml_vstrdupf(const char *, va_list); |
||
84 | |||
85 | # ifndef HAVE_SNPRINTF
|
||
86 | extern int _mxml_snprintf(char *, size_t, const char *, ...); |
||
87 | # define snprintf _mxml_snprintf
|
||
88 | # endif /* !HAVE_SNPRINTF */ |
||
89 | |||
90 | # ifndef HAVE_VSNPRINTF
|
||
91 | extern int _mxml_vsnprintf(char *, size_t, const char *, va_list); |
||
92 | # define vsnprintf _mxml_vsnprintf
|
||
93 | # endif /* !HAVE_VSNPRINTF */ |
||
94 | |||
95 | /*
|
||
96 | * End of "$Id: config.h.in 387 2009-04-18 17:05:52Z mike $".
|
||
97 | */ |