summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-14 23:35:36 +0100
committerTreeki <treeki@gmail.com>2013-02-14 23:35:36 +0100
commitb76eecb38a835b96220842e9c4bb6ca89c5512e3 (patch)
tree8331a940f61577b43ee41af056309c056f3833af /include/common.h
parente1ea18b5a01f1e476b8addf5202d77dc7060c1ee (diff)
downloadkamek-b76eecb38a835b96220842e9c4bb6ca89c5512e3.tar.gz
kamek-b76eecb38a835b96220842e9c4bb6ca89c5512e3.zip
re-added abs() to common.h, I was SURE I had done this already...
Diffstat (limited to '')
-rw-r--r--include/common.h6
1 files changed, 6 insertions, 0 deletions
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 {