diff options
author | Treeki <treeki@gmail.com> | 2012-10-22 05:02:49 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-22 05:02:49 +0200 |
commit | 9fa22baae0d44278cd73a54c1c4a11eac9255bff (patch) | |
tree | 124897f7b1b7d6384383aa18f98f53e93767c48a /include | |
parent | 96911438b1f4bf525c38bb548349d75f82e5fd3f (diff) | |
download | kamek-9fa22baae0d44278cd73a54c1c4a11eac9255bff.tar.gz kamek-9fa22baae0d44278cd73a54c1c4a11eac9255bff.zip |
fixes to make Newer compile with Clang... kinda
Diffstat (limited to '')
-rw-r--r-- | include/common.h | 12 | ||||
-rwxr-xr-x | include/game.h | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/include/common.h b/include/common.h index a070a56..5b85824 100644 --- a/include/common.h +++ b/include/common.h @@ -23,6 +23,8 @@ typedef unsigned int uint; typedef unsigned short ushort;
typedef unsigned char uchar;
+typedef unsigned long size_t;
+
typedef char* Ptr; // DUMB
typedef int BOOL;
@@ -52,7 +54,7 @@ extern "C" int strcmp ( const char * str1, const char * str2 ); #include "rvl/mtx.h"
-inline void *operator new(unsigned long size, void *ptr) { return ptr; }
+inline void *operator new(size_t size, void *ptr) { return ptr; }
@@ -78,10 +80,10 @@ struct tree_node { void OSReport(const char *format, ...);
int sprintf(char *buffer, const char *format, ...);
-int snprintf(char *buffer, int buff_size, const char *format, ...);
-char *strcat(const char *destination, const char *source);
-void *memset(void *ptr, int value, unsigned int num);
-int memcmp(const void *ptr1, const void *ptr2, unsigned int num);
+int snprintf(char *buffer, size_t buff_size, const char *format, ...);
+char *strcat(char *destination, const char *source);
+void *memset(void *ptr, int value, size_t num);
+int memcmp(const void *ptr1, const void *ptr2, size_t num);
void *AllocFromGameHeap1(u32 size);
void FreeFromGameHeap1(void *block);
diff --git a/include/game.h b/include/game.h index 63a076c..2e49ac4 100755 --- a/include/game.h +++ b/include/game.h @@ -1521,10 +1521,10 @@ template <class TOwner> class dStateWrapper_c : public dStateWrapperBase_c<TOwner> {
public:
dStateWrapper_c(TOwner *pOwner) :
- dStateWrapperBase_c(pOwner) { }
+ dStateWrapperBase_c<TOwner>(pOwner) { }
dStateWrapper_c(TOwner *pOwner, dState_c<TOwner> *pInitState) :
- dStateWrapperBase_c(pOwner, pInitState) { }
+ dStateWrapperBase_c<TOwner>(pOwner, pInitState) { }
~dStateWrapper_c() { }
};
|