[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 --- Comment #7 from kinke --- (In reply to Walter Bright from comment #4) > I suspect it might work if we added to stdarg.d: > > void __va_start(T)(va_list* ap, ref T parmn) > { > va_start(*ap, parmn); > } > > and to __builtins.

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 --- Comment #6 from Dennis --- Issue was linked to the wrong PR --

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 kinke changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 --- Comment #4 from Walter Bright --- I suspect it might work if we added to stdarg.d: void __va_start(T)(va_list* ap, ref T parmn) { va_start(*ap, parmn); } and to __builtins.di: alias __va_start = imported!"core.stdc.stda

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 --- Comment #3 from Walter Bright --- Currently, 1. there is no va_start in importc.h 2. in __builtins.di there is: alias __builtin_va_start = imported!"core.stdc.stdarg".va_start; 3. in Microsoft's stdarg.h there is: #define va_start __

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #2 from

[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

2024-01-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24310 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @WalterB