From ce5519a79052176f949eac104308044b5c9a203b Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 17 Jan 2011 22:56:16 +0000 Subject: [PATCH] lib/Basic/Targets.cpp: Fix __declspec() on Mingw-w64. It should be defined as-is. Some headers would detect existence of __declspec and use one. llvm-svn: 123690 --- clang/lib/Basic/Targets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 05525442add3..2ba09a919705 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1622,7 +1622,7 @@ public: DefineStd(Builder, "WIN64", Opts); Builder.defineMacro("__MSVCRT__"); Builder.defineMacro("__MINGW64__"); - Builder.defineMacro("__declspec"); + Builder.defineMacro("__declspec", "__declspec"); } }; } // end anonymous namespace