summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-30 21:32:40 -0700
committerJohn Denker <jsd@av8n.com>2012-07-30 21:32:40 -0700
commit64b9aec12be7080c3b81e505044b139d56bb07c4 (patch)
treeaa50fe7c53be72aab1b8bbc555e3a257ee45d448 /tools
parenta82ac7877c4b437c3a3636fcc9694a1d4b2dfc18 (diff)
minor: prefer stdlib to cmath
Diffstat (limited to 'tools')
-rw-r--r--tools/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/utils.c b/tools/utils.c
index c544f20..602a144 100644
--- a/tools/utils.c
+++ b/tools/utils.c
@@ -1,8 +1,10 @@
#include <string>
#include <sstream>
#include <iomanip>
-//#include <stdlib.h> /* for abs() */
-#include <cmath>
+#include <stdlib.h> /* for abs() */
+///// <cmath> would not be an improvement
+///// due to lack of interger abs()
+///// and ambiguous (and inefficient) promotion
#include <ctype.h> /* for isalnum() */
// strip off the directory part of a path, leaving just