[cfe-commits] r43029 - /cfe/trunk/Basic/SourceManager.cpp

Chris Lattner clattner at apple.com
Tue Oct 16 11:25:41 PDT 2007


On Oct 16, 2007, at 2:09 AM, Anton Korobeynikov wrote:

> Author: asl
> Date: Tue Oct 16 04:09:44 2007
> New Revision: 43029
>
> URL: http://llvm.org/viewvc/llvm-project?rev=43029&view=rev
> Log:
> Unbreak mingw32. Maybe there should be something like  
> libClandSystem? :)

The real fix for this is to make MemoryBuffer::getFile open a file  
with open/read/close if it is small.  This would be a relatively  
straight-forward fix to libsupport and would allow zapping a bunch of  
code (and these #includes) from SourceManager.cpp

-Chris

> Modified:
>     cfe/trunk/Basic/SourceManager.cpp
>
> Modified: cfe/trunk/Basic/SourceManager.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/ 
> SourceManager.cpp?rev=43029&r1=43028&r2=43029&view=diff
>
> ====================================================================== 
> ========
> --- cfe/trunk/Basic/SourceManager.cpp (original)
> +++ cfe/trunk/Basic/SourceManager.cpp Tue Oct 16 04:09:44 2007
> @@ -42,7 +42,7 @@
>  // FIXME: REMOVE THESE
>  #include <unistd.h>
>  #include <sys/types.h>
> -#if !defined(_MSC_VER)
> +#if !defined(_MSC_VER) && !defined(__MINGW32__)
>  #include <sys/uio.h>
>  #include <sys/fcntl.h>
>  #else
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list