config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* config.h. Generated from config.h.in by configure. */
  2. /*
  3. * "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $"
  4. *
  5. * Configuration file for Mini-XML, a small XML-like file parsing library.
  6. *
  7. * Copyright 2003-2014 by Michael R Sweet.
  8. *
  9. * These coded instructions, statements, and computer programs are the
  10. * property of Michael R Sweet and are protected by Federal copyright
  11. * law. Distribution and use rights are outlined in the file "COPYING"
  12. * which should have been included with this file. If this file is
  13. * missing or damaged, see the license at:
  14. *
  15. * http://www.msweet.org/projects.php/Mini-XML
  16. */
  17. /*
  18. * Include necessary headers...
  19. */
  20. #include <stdio.h>
  21. #include <stdlib.h>
  22. #include <string.h>
  23. #include <stdarg.h>
  24. #include <ctype.h>
  25. /*
  26. * Version number...
  27. */
  28. #define MXML_VERSION "Mini-XML v2.10"
  29. /*
  30. * Inline function support...
  31. */
  32. #define inline
  33. /*
  34. * Long long support...
  35. */
  36. #define HAVE_LONG_LONG 1
  37. /*
  38. * Do we have the snprintf() and vsnprintf() functions?
  39. */
  40. #define HAVE_SNPRINTF 1
  41. #define HAVE_VSNPRINTF 1
  42. /*
  43. * Do we have the strXXX() functions?
  44. */
  45. #define HAVE_STRDUP 1
  46. /*
  47. * Do we have threading support?
  48. */
  49. #define HAVE_PTHREAD_H 1
  50. /*
  51. * Define prototypes for string functions as needed...
  52. */
  53. # ifndef HAVE_STRDUP
  54. extern char *_mxml_strdup(const char *);
  55. # define strdup _mxml_strdup
  56. # endif /* !HAVE_STRDUP */
  57. extern char *_mxml_strdupf(const char *, ...);
  58. extern char *_mxml_vstrdupf(const char *, va_list);
  59. # ifndef HAVE_SNPRINTF
  60. extern int _mxml_snprintf(char *, size_t, const char *, ...);
  61. # define snprintf _mxml_snprintf
  62. # endif /* !HAVE_SNPRINTF */
  63. # ifndef HAVE_VSNPRINTF
  64. extern int _mxml_vsnprintf(char *, size_t, const char *, va_list);
  65. # define vsnprintf _mxml_vsnprintf
  66. # endif /* !HAVE_VSNPRINTF */
  67. /*
  68. * End of "$Id: config.h.in 451 2014-01-04 21:50:06Z msweet $".
  69. */