summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-03-07 05:19:03 +0000
committerTom Tromey <tromey@src.gnome.org>1998-03-07 05:19:03 +0000
commit793b5ea7af31bf0e3ef3c30c67143d2b5d45ad25 (patch)
tree93fc00a7541bafa3a0e116564b5aa796846f7718
parent55ea2b23b158e95722f3c77649742a50c5175f12 (diff)
downloadshared-mime-info-793b5ea7af31bf0e3ef3c30c67143d2b5d45ad25.tar.gz
Define unless using gcc. Define unless using gcc.
Fri Mar 6 20:10:55 1998 Tom Tromey <tromey@cygnus.com> * argp-fmtstream.h (__attribute__): Define unless using gcc. * argp.h (__attribute__): Define unless using gcc. svn path=/trunk/; revision=113
-rw-r--r--support/ChangeLog3
-rw-r--r--support/argp-fmtstream.h5
-rw-r--r--support/argp.h5
3 files changed, 13 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 383d1b72..943499e4 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,5 +1,8 @@
Fri Mar 6 20:10:55 1998 Tom Tromey <tromey@cygnus.com>
+ * argp-fmtstream.h (__attribute__): Define unless using gcc.
+ * argp.h (__attribute__): Define unless using gcc.
+
* argp-help.c, argp-parse.c, argp.h: Imported new versions from
glibc, while preserving local changes.
diff --git a/support/argp-fmtstream.h b/support/argp-fmtstream.h
index ebc68380..46184c16 100644
--- a/support/argp-fmtstream.h
+++ b/support/argp-fmtstream.h
@@ -34,6 +34,11 @@
#include <string.h>
#include <unistd.h>
+/* For Gnome only: don't assume gcc. */
+#ifndef __GNUC__
+#define __attribute__(X)
+#endif
+
#if (_LIBC - 0 && !defined (USE_IN_LIBIO)) \
|| (defined (__GNU_LIBRARY__) && defined (HAVE_LINEWRAP_H))
/* line_wrap_stream is available, so use that. */
diff --git a/support/argp.h b/support/argp.h
index b3058071..addb2513 100644
--- a/support/argp.h
+++ b/support/argp.h
@@ -44,6 +44,11 @@ typedef int error_t;
# define __P(args) ()
# endif
#endif
+
+/* For Gnome only: don't assume gcc. */
+#ifndef __GNUC__
+#define __attribute__(X)
+#endif
#ifdef __cplusplus
extern "C" {