Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 1 | /* config.h. Generated from config.h.in by configure. */ |
| 2 | /* |
Jon Medhurst | 96b5615 | 2014-10-30 18:01:15 +0000 | [diff] [blame] | 3 | * "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $" |
Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 4 | * |
| 5 | * Configuration file for Mini-XML, a small XML-like file parsing library. |
| 6 | * |
Jon Medhurst | 96b5615 | 2014-10-30 18:01:15 +0000 | [diff] [blame] | 7 | * Copyright 2003-2014 by Michael R Sweet. |
Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 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 | * |
Jon Medhurst | 96b5615 | 2014-10-30 18:01:15 +0000 | [diff] [blame] | 15 | * http://www.msweet.org/projects.php/Mini-XML |
Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 16 | */ |
| 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 Medhurst | 96b5615 | 2014-10-30 18:01:15 +0000 | [diff] [blame] | 33 | #define MXML_VERSION "Mini-XML v2.8" |
Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 34 | |
| 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 |
| 77 | extern char *_mxml_strdup(const char *); |
| 78 | # define strdup _mxml_strdup |
| 79 | # endif /* !HAVE_STRDUP */ |
| 80 | |
| 81 | extern char *_mxml_strdupf(const char *, ...); |
| 82 | extern char *_mxml_vstrdupf(const char *, va_list); |
| 83 | |
| 84 | # ifndef HAVE_SNPRINTF |
| 85 | extern int _mxml_snprintf(char *, size_t, const char *, ...); |
| 86 | # define snprintf _mxml_snprintf |
| 87 | # endif /* !HAVE_SNPRINTF */ |
| 88 | |
| 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 */ |
| 93 | |
| 94 | /* |
Jon Medhurst | 96b5615 | 2014-10-30 18:01:15 +0000 | [diff] [blame] | 95 | * End of "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $". |
Jon Medhurst | aaf37a3 | 2013-06-11 12:10:56 +0100 | [diff] [blame] | 96 | */ |