summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-24 14:03:15 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-24 14:03:15 +0100
commit9f45af85f5332dfdc4542ffa71717791d37a6a93 (patch)
tree449f1c1c0cee81a554f42be616a3370f365ac5c5 /src/port
parentbc7a5d8980f1d0a507f5593347ee425d864de79c (diff)
downloadwolfbones-9f45af85f5332dfdc4542ffa71717791d37a6a93.tar.gz
wolfbones-9f45af85f5332dfdc4542ffa71717791d37a6a93.tar.bz2
tested itoa, fixed tests/port on Windows
Diffstat (limited to 'src/port')
-rw-r--r--src/port/stdlib.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/port/stdlib.c b/src/port/stdlib.c
index 3a21fe6..4c2c16f 100644
--- a/src/port/stdlib.c
+++ b/src/port/stdlib.c
@@ -17,12 +17,9 @@
#include "port/stdlib.h"
-#if !defined HAVE_ITOA || defined TEST_HAVE_ITOA
+#if !defined HAVE_ITOA || defined TEST_ITOA
-#include "port/string.h" /* for memset */
-#include "port/unistd.h" /* for getpid */
-
-#include <errno.h> /* for errno */
+#include "port/string.h" /* for strlen */
static void reverse( char *s ) {
int i, j;
@@ -67,4 +64,4 @@ char *wolf_port_itoa( int value, char *string, int radix ) {
return string;
}
-#endif /* !defined HAVE_ITOA || defined TEST_HAVE_ITOA */
+#endif /* !defined HAVE_ITOA || defined TEST_ITOA */