config.h.in 1.7 KB

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