summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-30 15:57:28 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-30 15:57:28 +0000
commit42e2e303b5523475bf4ca8c241920b0b60e7cea5 (patch)
tree4022680dbc877a71b60329b5990ebd6685f0a602
parent9a3d691b6e5859104d28e32ba322a3df21d9a4be (diff)
downloadgnome-common-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
-rw-r--r--support/ChangeLog4
-rw-r--r--support/error.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 041edf6..0cebdab 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,5 +1,9 @@
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.
+
* gnomesupport-fake.h: Include gnome-argp.h to get
`program_invocation_name'.
diff --git a/support/error.c b/support/error.c
index 2011c35..d3e9fcb 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 */