www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Using stdarg and stdio together

reply J Anderson <REMOVEanderson badmama.com.au> writes:
I can't use stdio and stdarg in the same file. I get:

C:\dmd\bin\..\src\phobos\std\c\stdarg.d: typedef va_list conflicts with 
stdio.va_list at C:\dmd\bin\..\src\phobos\std\c\stdio.d(145)

To fix this I changed this line:

typedef void* va_list;

to:

private import std.c.stdio;

Is there something wrong with that?  Walter you please have it like that 
in the next version?

-- 
-Anderson: http://badmama.com.au/~anderson/
May 08 2004
parent "Walter" <newshound digitalmars.com> writes:
I'll take care of it. -Walter

"J Anderson" <REMOVEanderson badmama.com.au> wrote in message
news:c7i79c$fkt$1 digitaldaemon.com...
 I can't use stdio and stdarg in the same file. I get:

 C:\dmd\bin\..\src\phobos\std\c\stdarg.d: typedef va_list conflicts with
 stdio.va_list at C:\dmd\bin\..\src\phobos\std\c\stdio.d(145)

 To fix this I changed this line:

 typedef void* va_list;

 to:

 private import std.c.stdio;

 Is there something wrong with that?  Walter you please have it like that
 in the next version?

 -- 
 -Anderson: http://badmama.com.au/~anderson/

May 08 2004