From bfa0cd194459a256b68d00967fb94e52deef7615 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 13 Apr 2013 09:12:48 +0200 Subject: API updates --- include/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/common.h') 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 { -- cgit v1.2.3