[llvm-commits] [llvm] r72167 - /llvm/trunk/include/llvm/System/Atomic.h

Howard Su howard0su at gmail.com
Wed May 20 05:27:51 PDT 2009


This fix doesn't fully make llvm compile under MSVC. I still have the link
error when compile llvm-ld. Since windows.h will define the macro for
CopyFile. This cause the following line link to the CopyFileA.

llvm-ld.cpp
Line414:  if (0 != sys::CopyFile(sys::Path(OutputFilename), llvmstub,
&ErrMsg))


On Wed, May 20, 2009 at 5:34 PM, Owen Anderson <resistor at mac.com> wrote:

> Author: resistor
> Date: Wed May 20 04:34:13 2009
> New Revision: 72167
>
> URL: http://llvm.org/viewvc/llvm-project?rev=72167&view=rev
> Log:
> Compile fix for MSVC.
>
> Modified:
>    llvm/trunk/include/llvm/System/Atomic.h
>
> Modified: llvm/trunk/include/llvm/System/Atomic.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Atomic.h?rev=72167&r1=72166&r2=72167&view=diff
>
>
> ==============================================================================
> --- llvm/trunk/include/llvm/System/Atomic.h (original)
> +++ llvm/trunk/include/llvm/System/Atomic.h Wed May 20 04:34:13 2009
> @@ -17,6 +17,7 @@
>  #include "llvm/Config/config.h"
>
>  #if defined(_MSC_VER)
> +#define NOMINMAX
>  #include <windows.h>
>  #endif
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
-Howard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090520/5696ef31/attachment.html>


More information about the llvm-commits mailing list