diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2015-10-17 11:18:37 +0300 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2015-10-24 18:38:19 +0300 |
commit | b8ee1855645d427fd9a1ad17f9270340a42f96a0 (patch) | |
tree | 5d66f0d662b5c7f8441e356f2e157796cf5656e7 /src/Native/Runtime/allocheap.h | |
parent | 86b0cc9a82ae0655eb334ca4aacf9a384a05b89b (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/allocheap.h')
-rw-r--r-- | src/Native/Runtime/allocheap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Native/Runtime/allocheap.h b/src/Native/Runtime/allocheap.h index 52330f001..aa77cc376 100644 --- a/src/Native/Runtime/allocheap.h +++ b/src/Native/Runtime/allocheap.h @@ -119,6 +119,6 @@ class AllocHeap typedef DPTR(AllocHeap) PTR_AllocHeap; //------------------------------------------------------------------------------------------------- -void * __cdecl operator new(UIntNative n, AllocHeap * alloc); -void * __cdecl operator new[](UIntNative n, AllocHeap * alloc); +void * __cdecl operator new(size_t n, AllocHeap * alloc); +void * __cdecl operator new[](size_t n, AllocHeap * alloc); |