From d68a064819deaaa8e01eca3c7809050b25cedfbd Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Mon, 26 Oct 2009 14:42:00 +0100 Subject: Made some minor changes, for compatibility --- Source/Library/Common/types.h | 1 + Source/Library/Userland/common.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'Source/Library') diff --git a/Source/Library/Common/types.h b/Source/Library/Common/types.h index ca6f73d..de3be24 100644 --- a/Source/Library/Common/types.h +++ b/Source/Library/Common/types.h @@ -12,6 +12,7 @@ typedef long long s64int; typedef int s32int; typedef short s16int; typedef char s8int; +typedef unsigned long size_t; #define U64 unsigned long long #define S64 long long diff --git a/Source/Library/Userland/common.h b/Source/Library/Userland/common.h index 6257841..679afd0 100644 --- a/Source/Library/Userland/common.h +++ b/Source/Library/Userland/common.h @@ -14,13 +14,13 @@ namespace Mem { } //Standard implemenations of operator new/delete -inline void* operator new(u32int, void *p) { return p; } -inline void* operator new[](u32int, void *p) { return p; } +inline void* operator new(size_t, void *p) { return p; } +inline void* operator new[](size_t, void *p) { return p; } inline void operator delete(void*, void*) { } inline void operator delete[](void*, void*) { } -inline void* operator new(u32int sz) { return Mem::alloc(sz); } -inline void* operator new[](u32int sz) { return Mem::alloc(sz); } +inline void* operator new(size_t sz) { return Mem::alloc(sz); } +inline void* operator new[](size_t sz) { return Mem::alloc(sz); } inline void operator delete(void *ptr) { Mem::free(ptr); } inline void operator delete[](void *ptr) { Mem::free(ptr); } -- cgit v1.2.3