config.h.in 1.99 KB
Newer Older
1
/*
Michael Sweet's avatar
Michael Sweet committed
2
 * Configuration file for Mini-XML, a small XML file parsing library.
3
 *
Michael Sweet's avatar
Michael Sweet committed
4
 * Copyright 2003-2017 by Michael R Sweet.
5
 *
6 7 8 9 10
 * These coded instructions, statements, and computer programs are the
 * property of Michael R Sweet and are protected by Federal copyright
 * law.  Distribution and use rights are outlined in the file "COPYING"
 * which should have been included with this file.  If this file is
 * missing or damaged, see the license at:
11
 *
Michael Sweet's avatar
Michael Sweet committed
12
 *     https://michaelrsweet.github.io/mxml
13 14
 */

15 16 17 18 19 20 21
/*
 * Include necessary headers...
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
22 23 24 25
#include <stdarg.h>
#include <ctype.h>


26 27 28 29 30 31 32
/*
 * Version number...
 */

#define MXML_VERSION	""


33 34 35 36 37 38 39
/*
 * Inline function support...
 */

#define inline


40 41 42 43 44 45 46
/*
 * Long long support...
 */

#undef HAVE_LONG_LONG


47
/*
48
 * Do we have <zlib.h>?
49 50
 */

51
#undef HAVE_ZLIB_H
52 53


54
/*
55
 * Do we have the *printf() functions?
56 57
 */

58
#undef HAVE_SNPRINTF
59
#undef HAVE_VASPRINTF
60
#undef HAVE_VSNPRINTF
61 62


63 64 65 66 67
/*
 * Do we have the strXXX() functions?
 */

#undef HAVE_STRDUP
68
#undef HAVE_STRLCAT
69
#undef HAVE_STRLCPY
70 71


Michael R Sweet's avatar
Michael R Sweet committed
72 73 74 75 76 77 78
/*
 * Do we have threading support?
 */

#undef HAVE_PTHREAD_H


79 80 81 82 83
/*
 * Define prototypes for string functions as needed...
 */

#  ifndef HAVE_STRDUP
Michael R Sweet's avatar
Michael R Sweet committed
84 85
extern char	*_mxml_strdup(const char *);
#    define strdup _mxml_strdup
86 87
#  endif /* !HAVE_STRDUP */

88 89 90 91 92
#  ifndef HAVE_STRLCAT
extern size_t	_mxml_strlcat(char *, const char *, size_t);
#    define strlcat _mxml_strlcat
#  endif /* !HAVE_STRLCAT */

93 94 95 96 97
#  ifndef HAVE_STRLCPY
extern size_t	_mxml_strlcpy(char *, const char *, size_t);
#    define strlcpy _mxml_strlcpy
#  endif /* !HAVE_STRLCPY */

Michael R Sweet's avatar
Michael R Sweet committed
98 99
extern char	*_mxml_strdupf(const char *, ...);
extern char	*_mxml_vstrdupf(const char *, va_list);
100

101 102 103 104 105
#  ifndef HAVE_SNPRINTF
extern int	_mxml_snprintf(char *, size_t, const char *, ...);
#    define snprintf _mxml_snprintf
#  endif /* !HAVE_SNPRINTF */

106
#  ifndef HAVE_VSNPRINTF
Michael R Sweet's avatar
Michael R Sweet committed
107 108
extern int	_mxml_vsnprintf(char *, size_t, const char *, va_list);
#    define vsnprintf _mxml_vsnprintf
109
#  endif /* !HAVE_VSNPRINTF */