Revert r107993 and coree.h: Define __ImageBase as _image_base__ on cygwin that fixes...
[mono.git] / mono / metadata / coree.h
index 42f11855fa636c439592442b7cf5bb516f433249..63c4eb10e98048c895ac6cf24e8469eb95a52f44 100644 (file)
 
 STDAPI MonoFixupCorEE(HMODULE ModuleHandle);
 
-extern HMODULE mono_module_handle MONO_INTERNAL;
+/* Defined by the linker. */
+#ifndef _MSC_VER
+#define __ImageBase _image_base__
+#endif
+extern IMAGE_DOS_HEADER __ImageBase MONO_INTERNAL;
+
 extern HMODULE coree_module_handle MONO_INTERNAL;
 
 HMODULE WINAPI MonoLoadImage(LPCWSTR FileName) MONO_INTERNAL;