summaryrefslogtreecommitdiff
path: root/libxslt/xsltconfig.h.in
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-03-26 17:00:23 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-03-26 17:00:23 +0000
commit30adf85c57319c33f5211137237994c44c254ac1 (patch)
treed863a3404814f5d44a67f0016e531e1bc7bae7cd /libxslt/xsltconfig.h.in
parent07ae8641757e3ec587ddb77232409e1fdeaf72d2 (diff)
downloadlibxslt-30adf85c57319c33f5211137237994c44c254ac1.tar.gz
- libxslt/attributes.c libxslt/extra.c libxslt/keys.c libxslt/numbers.c
libxslt/templates.c libxslt/transform.c libxslt/xsltconfig.h.in libxslt/xsltutils.c: of course the way I defined UNUSED breaks on old gcc version. Try to be smart and also define it directly in xsltconfig.h - tests/xmlspec/Makefile.am: fixed the timing arg test Daniel
Diffstat (limited to 'libxslt/xsltconfig.h.in')
-rw-r--r--libxslt/xsltconfig.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/libxslt/xsltconfig.h.in b/libxslt/xsltconfig.h.in
index f8421f63..0fbcb0c4 100644
--- a/libxslt/xsltconfig.h.in
+++ b/libxslt/xsltconfig.h.in
@@ -20,6 +20,15 @@ extern "C" {
#define DEBUG_MEMORY_LOCATION
#endif
+#ifdef __GNUC__
+#include <ansidecl.h>
+#ifndef ATTRIBUTE_UNUSED
+#define ATTRIBUTE_UNUSED
+#endif
+#else
+#define ATTRIBUTE_UNUSED
+#endif
+
#ifdef __cplusplus
}
#endif