]> granicus.if.org Git - clang/commitdiff
lib/Basic/Targets.cpp: Fix __declspec() on Mingw-w64.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 17 Jan 2011 22:56:16 +0000 (22:56 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 17 Jan 2011 22:56:16 +0000 (22:56 +0000)
It should be defined as-is. Some headers would detect existence of __declspec and use one.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123690 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 05525442add3f6670c71d9afcdc4b60a4fa02f3b..2ba09a9197052a6a8ab1036aad5bba723caccc39 100644 (file)
@@ -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