#pragma once #if defined(__cplusplus) extern "C" { #endif typedef __builtin_va_list va_list; #define va_start(ap, X) __builtin_va_start(ap, X) #define va_arg(ap, type) __builtin_va_arg(ap, type) #define va_end(ap) __builtin_va_end(ap) #if defined(__cplusplus) } #endif