config.h

Go to the documentation of this file.
00001 /* config.h.  Generated from config.h.in by configure.  */
00002 /*
00003  * "$Id: config.h.in 310 2007-09-22 21:00:56Z mike $"
00004  *
00005  * Configuration file for Mini-XML, a small XML-like file parsing library.
00006  *
00007  * Copyright 2003-2007 by Michael Sweet.
00008  *
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Library General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 2, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  */
00019 
00020 /*
00021  * Include necessary headers...
00022  */
00023 
00024 #include <stdio.h>
00025 #include <stdlib.h>
00026 #include <string.h>
00027 #include <stdarg.h>
00028 #include <ctype.h>
00029 
00030 
00031 /*
00032  * Version number...
00033  */
00034 
00035 #define MXML_VERSION "Mini-XML v2.5"
00036 
00037 #ifdef DEBUG
00038 #ifndef MXML_DEBUG
00039 #undef DEBUG
00040 #endif
00041 #endif
00042 
00043 /*
00044  * Inline function support...
00045  */
00046 
00047 #define inline
00048 
00049 
00050 /*
00051  * Do we have the snprintf() and vsnprintf() functions?
00052  */
00053 
00054 #define HAVE_SNPRINTF 1
00055 #define HAVE_VSNPRINTF 1
00056 
00057 
00058 /*
00059  * Do we have the strXXX() functions?
00060  */
00061 
00062 #define HAVE_STRDUP 1
00063 
00064 
00065 /*
00066  * Do we have threading support?
00067  */
00068 
00069 #if defined(WIN32) || defined(_WIN32)
00070 #else
00071 #  define HAVE_PTHREAD_H 1
00072 #endif /* WIN32 */
00073 
00074 /*
00075  * Define prototypes for string functions as needed...
00076  */
00077 
00078 #  ifndef HAVE_STRDUP
00079 extern char *_mxml_strdup(const char *);
00080 #    define strdup _mxml_strdup
00081 #  endif /* !HAVE_STRDUP */
00082 
00083 extern char *_mxml_strdupf(const char *, ...);
00084 extern char *_mxml_vstrdupf(const char *, va_list);
00085 
00086 #  ifndef HAVE_SNPRINTF
00087 extern int  _mxml_snprintf(char *, size_t, const char *, ...);
00088 #    define snprintf _mxml_snprintf
00089 #  endif /* !HAVE_SNPRINTF */
00090 
00091 #  ifndef HAVE_VSNPRINTF
00092 extern int  _mxml_vsnprintf(char *, size_t, const char *, va_list);
00093 #    define vsnprintf _mxml_vsnprintf
00094 #  endif /* !HAVE_VSNPRINTF */

Generated by  doxygen 1.6.2