mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-14 15:55:30 +00:00
5472dc62f2
In my opinion, you can simplify a bit the configure script by using AC_TYPE_LONG_LONG_INT for detecting the support of long long type. The sources using HAVE_LONG_LONG just need to use HAVE_LONG_LONG_INT instead.
100 lines
1.7 KiB
C
100 lines
1.7 KiB
C
/*
|
||
* Configuration file for Mini-XML, a small XML file parsing library.
|
||
*
|
||
* https://www.msweet.org/mxml
|
||
*
|
||
* Copyright © 2003-2020 by Michael R Sweet.
|
||
*
|
||
* Licensed under Apache License v2.0. See the file "LICENSE" for more
|
||
* information.
|
||
*/
|
||
|
||
/*
|
||
* Include necessary headers...
|
||
*/
|
||
|
||
#include <stdio.h>
|
||
#include <stdlib.h>
|
||
#include <string.h>
|
||
#include <stdarg.h>
|
||
#include <ctype.h>
|
||
|
||
|
||
/*
|
||
* Version number...
|
||
*/
|
||
|
||
#define MXML_VERSION ""
|
||
|
||
|
||
/*
|
||
* Inline function support...
|
||
*/
|
||
|
||
#define inline
|
||
|
||
|
||
/*
|
||
* Long long support...
|
||
*/
|
||
|
||
#undef HAVE_LONG_LONG_INT
|
||
|
||
|
||
/*
|
||
* Do we have the *printf() functions?
|
||
*/
|
||
|
||
#undef HAVE_SNPRINTF
|
||
#undef HAVE_VASPRINTF
|
||
#undef HAVE_VSNPRINTF
|
||
|
||
|
||
/*
|
||
* Do we have the strXXX() functions?
|
||
*/
|
||
|
||
#undef HAVE_STRDUP
|
||
#undef HAVE_STRLCAT
|
||
#undef HAVE_STRLCPY
|
||
|
||
|
||
/*
|
||
* Do we have threading support?
|
||
*/
|
||
|
||
#undef HAVE_PTHREAD_H
|
||
|
||
|
||
/*
|
||
* Define prototypes for string functions as needed...
|
||
*/
|
||
|
||
# ifndef HAVE_STRDUP
|
||
extern char *_mxml_strdup(const char *);
|
||
# define strdup _mxml_strdup
|
||
# endif /* !HAVE_STRDUP */
|
||
|
||
# ifndef HAVE_STRLCAT
|
||
extern size_t _mxml_strlcat(char *, const char *, size_t);
|
||
# define strlcat _mxml_strlcat
|
||
# endif /* !HAVE_STRLCAT */
|
||
|
||
# ifndef HAVE_STRLCPY
|
||
extern size_t _mxml_strlcpy(char *, const char *, size_t);
|
||
# define strlcpy _mxml_strlcpy
|
||
# endif /* !HAVE_STRLCPY */
|
||
|
||
extern char *_mxml_strdupf(const char *, ...);
|
||
extern char *_mxml_vstrdupf(const char *, va_list);
|
||
|
||
# ifndef HAVE_SNPRINTF
|
||
extern int _mxml_snprintf(char *, size_t, const char *, ...);
|
||
# define snprintf _mxml_snprintf
|
||
# endif /* !HAVE_SNPRINTF */
|
||
|
||
# ifndef HAVE_VSNPRINTF
|
||
extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
|
||
# define vsnprintf _mxml_vsnprintf
|
||
# endif /* !HAVE_VSNPRINTF */
|