Skip to content

Commit b61a960

Browse files
committed
include: Don't redefine ATTRIBUTE_UNUSED
1 parent 7c31519 commit b61a960

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/libxml/xmlexports.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
* Attributes
4242
*/
4343

44-
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
45-
#define ATTRIBUTE_UNUSED __attribute__((unused))
46-
#else
47-
#define ATTRIBUTE_UNUSED
44+
#ifndef ATTRIBUTE_UNUSED
45+
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
46+
#define ATTRIBUTE_UNUSED __attribute__((unused))
47+
#else
48+
#define ATTRIBUTE_UNUSED
49+
#endif
4850
#endif
4951

5052
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)

0 commit comments

Comments
 (0)