diff options
author | Treeki <treeki@gmail.com> | 2013-02-14 23:35:36 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-14 23:35:36 +0100 |
commit | b76eecb38a835b96220842e9c4bb6ca89c5512e3 (patch) | |
tree | 8331a940f61577b43ee41af056309c056f3833af /include | |
parent | e1ea18b5a01f1e476b8addf5202d77dc7060c1ee (diff) | |
download | kamek-b76eecb38a835b96220842e9c4bb6ca89c5512e3.tar.gz kamek-b76eecb38a835b96220842e9c4bb6ca89c5512e3.zip |
re-added abs() to common.h, I was SURE I had done this already...
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 6 |
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 {
|