mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Revert "Merge pull request #2905 from 9rnsr/revert_pull2902"
This reverts commit80f463a1e2
, reversing changes made to588c76c19b
.
This commit is contained in:
parent
e453ecec38
commit
4c737a672f
2 changed files with 9 additions and 29 deletions
|
@ -312,24 +312,13 @@ class OutBuffer
|
|||
|
||||
void printf(string format, ...) @trusted
|
||||
{
|
||||
version (Win64)
|
||||
{
|
||||
vprintf(format, _argptr);
|
||||
}
|
||||
else version (X86_64)
|
||||
{
|
||||
va_list ap;
|
||||
va_list ap;
|
||||
static if (is(typeof(__va_argsave)))
|
||||
va_start(ap, __va_argsave);
|
||||
vprintf(format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
else
|
||||
{
|
||||
va_list ap;
|
||||
ap = cast(va_list)&format;
|
||||
ap += format.sizeof;
|
||||
vprintf(format, ap);
|
||||
}
|
||||
va_start(ap, format);
|
||||
vprintf(format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
/*****************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue