00001 /* 00002 * "$Id: config.h,v 1.2 2008/01/15 01:28:09 david_ko Exp $" 00003 * 00004 * Configuration file for Mini-XML, a small XML-like file parsing library. 00005 * 00006 * Copyright 2003-2004 by Michael Sweet. 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Library General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 */ 00018 00019 /* 00020 * Include necessary headers... 00021 */ 00022 00023 #include <stdio.h> 00024 #include <stdlib.h> 00025 #include <string.h> 00026 #include <stdarg.h> 00027 #include <ctype.h> 00028 00029 00030 /* 00031 * Version number... 00032 */ 00033 00034 #define MXML_VERSION "Mini-XML v2.0" 00035 00036 00037 /* 00038 * Do we have the vsnprintf() function? 00039 */ 00040 00041 /*#undef HAVE_VSNPRINTF */ 00042 00043 00044 /* 00045 * Do we have the strXXX() functions? 00046 */ 00047 00048 #define HAVE_STRDUP 1 00049 00050 00051 /* 00052 * Define prototypes for string functions as needed... 00053 */ 00054 00055 # ifndef HAVE_STRDUP 00056 extern char *mxml_strdup(const char *); 00057 # define strdup mxml_strdup 00058 # endif /* !HAVE_STRDUP */ 00059 00060 extern char *mxml_strdupf(const char *, va_list); 00061 00062 # ifndef HAVE_VSNPRINTF 00063 extern int mxml_vsnprintf(char *, size_t, const char *, va_list); 00064 # define vsnprintf mxml_vsnprintf 00065 # endif /* !HAVE_VSNPRINTF */ 00066 00067 /* 00068 * End of "$Id: config.h,v 1.2 2008/01/15 01:28:09 david_ko Exp $". 00069 */