Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 1 | #ifndef _STDARG_H |
| 2 | #define _STDARG_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | #define __NEED_va_list |
| 9 | |
| 10 | #include <bits/alltypes.h> |
| 11 | |
| 12 | #if __GNUC__ >= 3 |
George Kulakowski | 17e3b04 | 2016-02-18 15:59:50 -0800 | [diff] [blame] | 13 | #define va_start(v, l) __builtin_va_start(v, l) |
| 14 | #define va_end(v) __builtin_va_end(v) |
| 15 | #define va_arg(v, l) __builtin_va_arg(v, l) |
| 16 | #define va_copy(d, s) __builtin_va_copy(d, s) |
Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 17 | #else |
| 18 | #include <bits/stdarg.h> |
| 19 | #endif |
| 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | #endif |