diff options
Diffstat (limited to '')
-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 {
|