diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-02 00:42:52 +0000 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-02 00:42:52 +0000 |
| commit | 76bebf24a531f7019ba6369eb5eafe34c2992882 (patch) | |
| tree | 49f0a2466e3dceb957fee8fb154d7cba140f2f87 /lib/obstack.c | |
| parent | (gl_REGEX): Check whether off_t can be used in a switch (diff) | |
| download | coreutils-76bebf24a531f7019ba6369eb5eafe34c2992882.tar.gz coreutils-76bebf24a531f7019ba6369eb5eafe34c2992882.zip | |
Import from gnulib.
Diffstat (limited to 'lib/obstack.c')
| -rw-r--r-- | lib/obstack.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/obstack.c b/lib/obstack.c index f3ca2c2e0..6df0611d2 100644 --- a/lib/obstack.c +++ b/lib/obstack.c @@ -51,10 +51,6 @@ # endif #endif -#if defined _LIBC && defined USE_IN_LIBIO -# include <wchar.h> -#endif - #include <stddef.h> #ifndef ELIDE_CODE @@ -433,12 +429,11 @@ print_and_abort (void) happen because the "memory exhausted" message appears in other places like this and the translation should be reused instead of creating a very similar string which requires a separate translation. */ -# if defined _LIBC && defined USE_IN_LIBIO - if (_IO_fwide (stderr, 0) > 0) - __fwprintf (stderr, L"%s\n", _("memory exhausted")); - else +# ifdef _LIBC + (void) __fxprintf (NULL, "%s\n", _("memory exhausted")); +# else + fprintf (stderr, "%s\n", _("memory exhausted")); # endif - fprintf (stderr, "%s\n", _("memory exhausted")); exit (obstack_exit_failure); } |
