Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-10-17 11:18:37 +0300
committerJan Vorlicek <janvorli@microsoft.com>2015-10-24 18:38:19 +0300
commitb8ee1855645d427fd9a1ad17f9270340a42f96a0 (patch)
tree5d66f0d662b5c7f8441e356f2e157796cf5656e7 /src/Native/Runtime/PalRedhawkFunctions.h
parent86b0cc9a82ae0655eb334ca4aacf9a384a05b89b (diff)
Enable compilation of the runtime on Linux
This change enables compilation of the runtime excluding the PAL layer on Linux. Most of the changes are just to make it build with clang that's more strict w.r.t. the C++11 standard. In addition to that, I have removed our implementation of the new / delete operators and replaced all calls to new in the runtime by new (nothrow).
Diffstat (limited to 'src/Native/Runtime/PalRedhawkFunctions.h')
-rw-r--r--src/Native/Runtime/PalRedhawkFunctions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Native/Runtime/PalRedhawkFunctions.h b/src/Native/Runtime/PalRedhawkFunctions.h
index 71c87bb9e..4fde38776 100644
--- a/src/Native/Runtime/PalRedhawkFunctions.h
+++ b/src/Native/Runtime/PalRedhawkFunctions.h
@@ -111,8 +111,8 @@ inline UInt32 PalGetLastError()
return GetLastError();
}
-extern "C" void * __stdcall GetProcAddress(HANDLE, char *);
-inline void * PalGetProcAddress(HANDLE arg1, char * arg2)
+extern "C" void * __stdcall GetProcAddress(HANDLE, const char *);
+inline void * PalGetProcAddress(HANDLE arg1, const char * arg2)
{
return GetProcAddress(arg1, arg2);
}
@@ -160,8 +160,8 @@ inline void PalLeaveCriticalSection(CRITICAL_SECTION * arg1)
LeaveCriticalSection(arg1);
}
-extern "C" HANDLE __stdcall LoadLibraryExW(WCHAR *, HANDLE, UInt32);
-inline HANDLE PalLoadLibraryExW(WCHAR * arg1, HANDLE arg2, UInt32 arg3)
+extern "C" HANDLE __stdcall LoadLibraryExW(const WCHAR *, HANDLE, UInt32);
+inline HANDLE PalLoadLibraryExW(const WCHAR * arg1, HANDLE arg2, UInt32 arg3)
{
return LoadLibraryExW(arg1, arg2, arg3);
}