diff options
author | Treeki <treeki@gmail.com> | 2013-04-13 09:12:48 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-13 09:13:49 +0200 |
commit | bfa0cd194459a256b68d00967fb94e52deef7615 (patch) | |
tree | f1a4c0792b68b5daa7b7c178b81e975030d598a3 /include/common.h | |
parent | ff5c70083f464a0c052e7621d45c5221166b8702 (diff) | |
download | kamek-bfa0cd194459a256b68d00967fb94e52deef7615.tar.gz kamek-bfa0cd194459a256b68d00967fb94e52deef7615.zip |
API updates
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 8 |
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 {
|