config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* config.h. Generated from config.h.in by configure. */
  2. /*
  3. * Configuration file for Mini-XML, a small XML file parsing library.
  4. *
  5. * https://www.msweet.org/mxml
  6. *
  7. * Copyright © 2003-2020 by Michael R Sweet.
  8. *
  9. * Licensed under Apache License v2.0. See the file "LICENSE" for more
  10. * information.
  11. */
  12. /*
  13. * Include necessary headers...
  14. */
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <string.h>
  18. #include <stdarg.h>
  19. #include <ctype.h>
  20. /*
  21. * Version number...
  22. */
  23. #define MXML_VERSION "Mini-XML v3.2"
  24. /*
  25. * Inline function support...
  26. */
  27. #define inline
  28. /*
  29. * Long long support...
  30. */
  31. #define HAVE_LONG_LONG 1
  32. /*
  33. * Do we have the *printf() functions?
  34. */
  35. #define HAVE_SNPRINTF 1
  36. #define HAVE_VASPRINTF 1
  37. #define HAVE_VSNPRINTF 1
  38. /*
  39. * Do we have the strXXX() functions?
  40. */
  41. #define HAVE_STRDUP 1
  42. /* #undef HAVE_STRLCAT */
  43. /* #undef HAVE_STRLCPY */
  44. /*
  45. * Do we have threading support?
  46. */
  47. #define HAVE_PTHREAD_H 1
  48. /*
  49. * Define prototypes for string functions as needed...
  50. */
  51. # ifndef HAVE_STRDUP
  52. extern char *_mxml_strdup(const char *);
  53. # define strdup _mxml_strdup
  54. # endif /* !HAVE_STRDUP */
  55. # ifndef HAVE_STRLCAT
  56. extern size_t _mxml_strlcat(char *, const char *, size_t);
  57. # define strlcat _mxml_strlcat
  58. # endif /* !HAVE_STRLCAT */
  59. # ifndef HAVE_STRLCPY
  60. extern size_t _mxml_strlcpy(char *, const char *, size_t);
  61. # define strlcpy _mxml_strlcpy
  62. # endif /* !HAVE_STRLCPY */
  63. extern char *_mxml_strdupf(const char *, ...);
  64. extern char *_mxml_vstrdupf(const char *, va_list);
  65. # ifndef HAVE_SNPRINTF
  66. extern int _mxml_snprintf(char *, size_t, const char *, ...);
  67. # define snprintf _mxml_snprintf
  68. # endif /* !HAVE_SNPRINTF */
  69. # ifndef HAVE_VSNPRINTF
  70. extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
  71. # define vsnprintf _mxml_vsnprintf
  72. # endif /* !HAVE_VSNPRINTF */