config.h.in 1.7 KB

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