1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-07 16:21:10 +03:00

include: Don't define ATTRIBUTE_UNUSED in public header

Stop polluting namespace with unprefixed names.
This commit is contained in:
Nick Wellnhofer
2024-06-15 19:15:33 +02:00
parent 724f12ba9f
commit 43d4fe21f7
5 changed files with 24 additions and 13 deletions

View File

@ -19,6 +19,12 @@
#include <libxslt/variables.h>
#include <libxslt/xsltconfig.h>
#ifdef __GNUC__
#define ATTRIBUTE_UNUSED __attribute__((unused))
#else
#define ATTRIBUTE_UNUSED
#endif
#define Pystylesheet_Get(v) (((v) == Py_None) ? NULL : \
(((Pystylesheet_Object *)(v))->obj))