Permalink
Browse files

Decorate _image_base__ with __MINGW_LSYMBOL

This fix is needed in compiling for x86_x64.
  • Loading branch information...
1 parent 5d757ea commit 98b048cbc473368afa4f0423dda32241f486ed3a @hiberis hiberis committed with vargaz Feb 11, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 mono/metadata/coree.h
View
4 mono/metadata/coree.h
@@ -24,8 +24,12 @@ STDAPI MonoFixupCorEE(HMODULE ModuleHandle);
/* Defined by the linker. */
#ifndef _MSC_VER
+#ifdef __MINGW64_VERSION_MAJOR
+#define __ImageBase __MINGW_LSYMBOL(_image_base__)
+#else
#define __ImageBase _image_base__
#endif
+#endif
extern IMAGE_DOS_HEADER __ImageBase MONO_INTERNAL;
extern HMODULE coree_module_handle MONO_INTERNAL;

0 comments on commit 98b048c

Please sign in to comment.