mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
* malloc/mtrace.c: Revert last change. * posix/wordexp.c: Likewise.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user