summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/utils.h b/utils/utils.h
index cf66aedca..fc4479d8e 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -39,6 +39,13 @@
#ifndef max
#define max(x,y) (((x)>(y))?(x):(y))
#endif
+#ifndef PRIxPTR
+#define PRIxPTR "x"
+#endif
+
+#if defined(__HAIKU__) || defined(__BEOS__)
+#define strtof(s,p) ((float)(strtod((s),(p))))
+#endif
/**
* Calculate length of constant C string.