config.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Xcode configuration file for Mini-XML, a small XML file parsing library.
  3. *
  4. * https://www.msweet.org/mxml
  5. *
  6. * Copyright © 2003-2021 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 "Mini-XML v3.3.1"
  23. /*
  24. * Inline function support...
  25. */
  26. #define inline
  27. /*
  28. * Long long support...
  29. */
  30. #define HAVE_LONG_LONG_INT 1
  31. /*
  32. * Do we have the *printf() functions?
  33. */
  34. #define HAVE_SNPRINTF 1
  35. #define HAVE_VASPRINTF 1
  36. #define HAVE_VSNPRINTF 1
  37. /*
  38. * Do we have the strXXX() functions?
  39. */
  40. #define HAVE_STRDUP 1
  41. #define HAVE_STRLCAT 1
  42. #define HAVE_STRLCPY 1
  43. /*
  44. * Do we have threading support?
  45. */
  46. #define HAVE_PTHREAD_H 1
  47. /*
  48. * Define prototypes for string functions as needed...
  49. */
  50. extern char *_mxml_strdupf(const char *, ...);
  51. extern char *_mxml_vstrdupf(const char *, va_list);