https://issues.dlang.org/show_bug.cgi?id=21974
Issue ID: 21974
Summary: importC: Error: undefined identifier
'__builtin_va_list'
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
On C compilers, the library never defines the va_list type itself, the compiler
always provides the full definition.
In D, we already generate the va_list type internally (Target.tvalist), this
can be exposed to importC as a `__builtin_valist` keyword to support stdio.h
and stdarg.h, which have these definitions:
---
typedef __builtin_va_list va_list;
typedef __builtin_va_list __gnuc_va_list;
---
--