On 08/17/12 11:33, Rainer Emrich wrote:
> Am 17.08.2012 09:37, schrieb Rainer Emrich:
> > After the gcc cxx-conversion merge has taken place, I get a conflicting
> > declaration of getcwd in io.h in several places while bootstrapping
> > gcc-4.8.0.
>
> > In file included from ../../../src/gcc-4.8.0/gcc/ggc-common.c:25:0:
> > ../../../src/gcc-4.8.0/gcc/system.h:423:36: error: declaration of C
> > function 'char* getcwd(char*, size_t)' conflicts with In file
> included from
> > D:/x86_64-w64-trunk/mingw/include/unistd.h:10:0, from
> > ../../../src/gcc-4.8.0/gcc/system.h:253, from
> > ../../../src/gcc-4.8.0/gcc/ggc-common.c:25:
> > D:/x86_64-w64-trunk/mingw/include/io.h:266:17: error: previous
> declaration
> > 'char* getcwd(char*, int)' here
>
>
> Oops, there's a second declaration in direct.h, has to be changed
> accordingly.
> OTOH, why do we have declarations at 2 locations in the first place?

That's a good question, it seems like MSVC has only one declaration in
direct.h. I don't know why do we have it duplicated in io.h. IMO we
should consider removing it from there, leaving only direct.h version.

Jacek



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to