From b76eecb38a835b96220842e9c4bb6ca89c5512e3 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Feb 2013 23:35:36 +0100 Subject: re-added abs() to common.h, I was SURE I had done this already... --- include/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 5669a3f..38e9c86 100644 --- a/include/common.h +++ b/include/common.h @@ -56,6 +56,12 @@ extern "C" int strcmp ( const char * str1, const char * str2 ); inline void *operator new(size_t size, void *ptr) { return ptr; } +inline float abs(float value) { + return __fabs(value); +} +inline double abs(double value) { + return __fabs(value); +} struct tree_node { -- cgit v1.2.3