summaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-01-25 00:45:00 +0000
committerUlrich Drepper <drepper@redhat.com>2007-01-25 00:45:00 +0000
commit7fbc8784bdd8fa234e8c1fd10bb71e057d54072e (patch)
treec56c6ee0b5629d11c3454844bd1b8735e684e71b /stdio-common
parent9d6cde3dd555b7501037332842879001cf66091b (diff)
downloadglibc-7fbc8784bdd8fa234e8c1fd10bb71e057d54072e.tar.gz
* stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
* malloc/mtrace.c: Revert last change. * posix/wordexp.c: Likewise.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/_itoa.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/stdio-common/_itoa.h b/stdio-common/_itoa.h
index 21a9c39294..6d9812fe32 100644
--- a/stdio-common/_itoa.h
+++ b/stdio-common/_itoa.h
@@ -1,5 +1,5 @@
/* Internal function for converting integers to ASCII.
- Copyright (C) 1994,95,96,97,98,99,2002,2003 Free Software Foundation, Inc.
+ Copyright (C) 1994-1999,2002,2003,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,7 +19,8 @@
#ifndef _ITOA_H
#define _ITOA_H
-#include <sys/cdefs.h>
+
+#include <limits.h>
/* Convert VALUE into ASCII in base BASE (2..36).
Write backwards starting the character just before BUFLIM.
@@ -81,4 +82,12 @@ extern char *_fitoa_word (unsigned long value, char *buf, unsigned int base,
extern char *_fitoa (unsigned long long value, char *buf, unsigned int base,
int upper_case) attribute_hidden;
+#if LONG_MAX == LLONG_MAX
+/* No need for special long long versions. */
+# define _itoa(value, buf, base, upper_case) \
+ _itoa_word (value, buf, base, upper_case)
+# define _fitoa(value, buf, base, upper_case) \
+ _fitoa_word (value, buf, base, upper_case)
+#endif
+
#endif /* itoa.h */