_mingw_stdarg.h 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_STDARG
  7. #define _INC_STDARG
  8. #ifndef _WIN32
  9. #error Only Win32 target is supported!
  10. #endif
  11. #include <vadefs.h>
  12. #ifndef va_start
  13. #define va_start _crt_va_start
  14. #endif
  15. #ifndef va_arg
  16. #define va_arg _crt_va_arg
  17. #endif
  18. #ifndef va_end
  19. #define va_end _crt_va_end
  20. #endif
  21. #ifndef __va_copy
  22. #define __va_copy _crt_va_copy
  23. #endif
  24. #if !defined(va_copy) && \
  25. (!defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L || defined(__GXX_EXPERIMENTAL_CXX0X__))
  26. #define va_copy _crt_va_copy
  27. #endif
  28. #endif /* not _INC_STDARG */