va_args.patch 746 B

123456789101112131415161718192021222324252627
  1. --- a/xmlwriter.c 2014-10-03 15:28:06.000000000 +0400
  2. +++ b/xmlwriter.c 2014-11-19 21:21:29.817274759 +0300
  3. @@ -35,19 +35,13 @@
  4. * be sufficient for libxml2.
  5. */
  6. #ifndef VA_COPY
  7. - #ifdef HAVE_VA_COPY
  8. + #ifndef _WIN32
  9. + #ifndef va_copy
  10. + #define va_copy __va_copy
  11. + #endif
  12. #define VA_COPY(dest, src) va_copy(dest, src)
  13. #else
  14. - #ifdef HAVE___VA_COPY
  15. - #define VA_COPY(dest,src) __va_copy(dest, src)
  16. - #else
  17. - #ifndef VA_LIST_IS_ARRAY
  18. - #define VA_COPY(dest,src) (dest) = (src)
  19. - #else
  20. - #include <string.h>
  21. - #define VA_COPY(dest,src) memcpy((char *)(dest),(char *)(src),sizeof(va_list))
  22. - #endif
  23. - #endif
  24. + #define VA_COPY(dest,src) (dest) = (src)
  25. #endif
  26. #endif