summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-13 09:12:48 +0200
committerTreeki <treeki@gmail.com>2013-04-13 09:13:49 +0200
commitbfa0cd194459a256b68d00967fb94e52deef7615 (patch)
treef1a4c0792b68b5daa7b7c178b81e975030d598a3 /include/common.h
parentff5c70083f464a0c052e7621d45c5221166b8702 (diff)
downloadkamek-bfa0cd194459a256b68d00967fb94e52deef7615.tar.gz
kamek-bfa0cd194459a256b68d00967fb94e52deef7615.zip
API updates
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 82d3fca..e45f733 100644
--- a/include/common.h
+++ b/include/common.h
@@ -54,6 +54,13 @@ extern "C" int strcmp ( const char * str1, const char * str2 );
#include "rvl/mtx.h"
+// Stop the auto completion from whining
+#ifdef __CLANG
+inline void *operator new(unsigned int size, void *ptr) { return ptr; }
+float abs(float value);
+double abs(double value);
+#endif
+#ifndef __CLANG
inline void *operator new(size_t size, void *ptr) { return ptr; }
inline float abs(float value) {
@@ -62,6 +69,7 @@ inline float abs(float value) {
inline double abs(double value) {
return __fabs(value);
}
+#endif
struct tree_node {