Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-06-14 18:31:59 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-06-14 18:31:59 +0400
commitaee3f8fb6fbacb4223b1c8ce259e3dd875c85031 (patch)
treeb37b8a50a2bd213bee1bbeb5bd82d2cfbf0da5c7 /newlib/libc/time/strftime.c
parent25fa7e5ad63d97d00deef1c9eddb346d1134ba72 (diff)
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
to siprintf. * libc/time/strftime.c: Define snprintf to sniprintf in multibyte case. * libc/time/tzset_r.c: Define sscanf to siscanf.
Diffstat (limited to 'newlib/libc/time/strftime.c')
-rw-r--r--newlib/libc/time/strftime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c
index 3ab63da1c..f4704b62d 100644
--- a/newlib/libc/time/strftime.c
+++ b/newlib/libc/time/strftime.c
@@ -285,6 +285,7 @@ the "C" locale settings.
# define CQ(a) a /* character constant qualifier */
# define SFLG /* %s flag (null for normal char) */
# define _ctloc(x) (ctloclen = strlen (ctloc = _CurrentTimeLocale->x), ctloc)
+# define snprintf sniprintf /* avoid to pull in FP functions. */
# define TOLOWER(c) tolower((int)(unsigned char)(c))
# define STRTOUL(c,p,b) strtoul((c),(p),(b))
# define STRCPY(a,b) strcpy((a),(b))