[LLVMdev] Little win32/Signals.cpp patch

Misha Brukman brukman at uiuc.edu
Fri Sep 24 08:33:26 PDT 2004


On Fri, Sep 24, 2004 at 05:32:08PM +0200, Paolo Invernizzi wrote:
> Jeff Cohen wrote:
> 
> ><algorithm> works too.
> > 
> >
> For std::remove yes... but...
> 
> d:\home\arathorn\sandbox\llvm\llvm\lib\System\platform\Signals.cpp(179) 
> : error C2065: 'stderr' : undeclared identifier
> d:\home\arathorn\sandbox\llvm\llvm\lib\System\platform\Signals.cpp(179) 
> : error C3861: 'fprintf': identifier not found, even with 
> argument-dependent lookup

These should all be prepended with ::, methinks, to label them as coming
from the global namespace...

For one, as example I'm seeing the following in Unix/Path.cpp:

  int fd = ::creat(path.c_str(), S_IRUSR | S_IWUSR);

-- 
Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu




More information about the llvm-dev mailing list