27 |
#else |
#else |
28 |
# include "gettext.h" |
# include "gettext.h" |
29 |
#endif |
#endif |
|
#define _(msgid) gettext (msgid) |
|
30 |
|
|
31 |
#ifdef _LIBC |
#ifdef _LIBC |
32 |
# include <wchar.h> |
# include <wchar.h> |
54 |
#endif |
#endif |
55 |
|
|
56 |
#include "error.h" |
#include "error.h" |
57 |
#include "unlocked-io.h" |
|
58 |
|
#if !_LIBC |
59 |
|
# include "unlocked-io.h" |
60 |
|
#endif |
61 |
|
|
62 |
|
#ifndef _ |
63 |
|
# define _(String) String |
64 |
|
#endif |
65 |
|
|
66 |
/* If NULL, error will flush stdout, then print on stderr the program |
/* If NULL, error will flush stdout, then print on stderr the program |
67 |
name, a colon and a space. Otherwise, error will call this |
name, a colon and a space. Otherwise, error will call this |
80 |
|
|
81 |
# define program_name program_invocation_name |
# define program_name program_invocation_name |
82 |
# include <errno.h> |
# include <errno.h> |
83 |
|
# include <libio/libioP.h> |
84 |
|
|
85 |
/* In GNU libc we want do not want to use the common name `error' directly. |
/* In GNU libc we want do not want to use the common name `error' directly. |
86 |
Instead make it a weak alias. */ |
Instead make it a weak alias. */ |
95 |
|
|
96 |
# ifdef USE_IN_LIBIO |
# ifdef USE_IN_LIBIO |
97 |
# include <libio/iolibio.h> |
# include <libio/iolibio.h> |
98 |
# define fflush(s) _IO_fflush (s) |
# define fflush(s) INTUSE(_IO_fflush) (s) |
99 |
|
# undef putc |
100 |
|
# define putc(c, fp) INTUSE(_IO_putc) (c, fp) |
101 |
# endif |
# endif |
102 |
|
|
103 |
#else /* not _LIBC */ |
#else /* not _LIBC */ |