[llvm-commits] [llvm] r125169 - /llvm/trunk/lib/Support/Windows/DynamicLibrary.inc
NAKAMURA Takumi
geek4civic at gmail.com
Tue Feb 8 20:18:12 PST 2011
Author: chapuni
Date: Tue Feb 8 22:18:12 2011
New Revision: 125169
URL: http://llvm.org/viewvc/llvm-project?rev=125169&view=rev
Log:
Windows/DynamicLibrary.inc: ELM_Callback fix for mingw-w64.
Modified:
llvm/trunk/lib/Support/Windows/DynamicLibrary.inc
Modified: llvm/trunk/lib/Support/Windows/DynamicLibrary.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/DynamicLibrary.inc?rev=125169&r1=125168&r2=125169&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/DynamicLibrary.inc (original)
+++ llvm/trunk/lib/Support/Windows/DynamicLibrary.inc Tue Feb 8 22:18:12 2011
@@ -55,7 +55,17 @@
// Use new callback if:
// - Newer Visual Studio (comes with newer SDK).
// - Visual Studio 2005 with Windows SDK 6.0+
-#if !defined(_MSC_VER) || _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 6000)
+#if defined(_MSC_VER)
+ #if _MSC_VER < 1500 && (!defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 6000)
+ #define OLD_ELM_CALLBACK_DECL 1
+ #endif
+#elif defined(__MINGW64__)
+ // Use new callback.
+#elif defined(__MINGW32__)
+ #define OLD_ELM_CALLBACK_DECL 1
+#endif
+
+#ifdef OLD_ELM_CALLBACK_DECL
static BOOL CALLBACK ELM_Callback(PSTR ModuleName,
ModuleBaseType ModuleBase,
ULONG ModuleSize,
More information about the llvm-commits
mailing list