uClibc_va_copy.h 782 B

123456789101112131415161718192021222324252627
  1. /* Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org>
  2. *
  3. * GNU Library General Public License (LGPL) version 2 or later.
  4. *
  5. * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
  6. */
  7. #ifndef _UCLIBC_VA_COPY_H
  8. #define _UCLIBC_VA_COPY_H 1
  9. #include <stdarg.h>
  10. /* Deal with pre-C99 compilers. */
  11. #ifndef va_copy
  12. #ifdef __va_copy
  13. #define va_copy(A,B) __va_copy(A,B)
  14. #else
  15. #warning Neither va_copy (C99/SUSv3) or __va_copy is defined. Using a simple copy instead. But you should really check that this is appropriate and supply an arch-specific override if necessary.
  16. /* the glibc manual suggests that this will usually suffice when
  17. __va_copy doesn't exist. */
  18. #define va_copy(A,B) A = B
  19. #endif
  20. #endif /* va_copy */
  21. #endif /* _UCLIBC_VA_COPY_H */