diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-07-30 15:57:28 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-07-30 15:57:28 +0000 |
commit | 42e2e303b5523475bf4ca8c241920b0b60e7cea5 (patch) | |
tree | 4022680dbc877a71b60329b5990ebd6685f0a602 /support/error.c | |
parent | 9a3d691b6e5859104d28e32ba322a3df21d9a4be (diff) | |
download | shared-mime-info-42e2e303b5523475bf4ca8c241920b0b60e7cea5.tar.gz |
Making weak alias `__error' and `__error_at_line' only if `_LIBC' is
1998-07-30 Martin Baulig <martin@home-of-linux.org>
* error.c: Making weak alias `__error' and `__error_at_line'
only if `_LIBC' is defined and not if we only
HAVE_PROGRAM_INVOCATION_NAME.
svn path=/trunk/; revision=313
Diffstat (limited to 'support/error.c')
-rw-r--r-- | support/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/error.c b/support/error.c index 2011c35d..d3e9fcb8 100644 --- a/support/error.c +++ b/support/error.c @@ -73,10 +73,12 @@ unsigned int error_message_count; # define program_name program_invocation_name # include <errno.h> +#if defined _LIBC /* In GNU libc we want do not want to use the common name `error' directly. Instead make it a weak alias. */ # define error __error # define error_at_line __error_at_line +#endif /* _LIBC */ #else /* not _LIBC */ |