mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Windows/DynamicLibrary.inc: ELM_Callback fix for mingw-w64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,7 +55,17 @@ extern "C" {
|
|||||||
// Use new callback if:
|
// Use new callback if:
|
||||||
// - Newer Visual Studio (comes with newer SDK).
|
// - Newer Visual Studio (comes with newer SDK).
|
||||||
// - Visual Studio 2005 with Windows SDK 6.0+
|
// - 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,
|
static BOOL CALLBACK ELM_Callback(PSTR ModuleName,
|
||||||
ModuleBaseType ModuleBase,
|
ModuleBaseType ModuleBase,
|
||||||
ULONG ModuleSize,
|
ULONG ModuleSize,
|
||||||
|
Reference in New Issue
Block a user