aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-05-05 01:11:58 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-05-05 01:11:58 +0200
commitd0f881777c6aefaa7232b4950484386ddced1f5e (patch)
tree242ba106fe58b8768012634c692c30093a2433e3
parent3c243949cf57f19479fdea67bb9f71543cd9f966 (diff)
downloadlv2lint-d0f881777c6aefaa7232b4950484386ddced1f5e.zip
lv2lint-d0f881777c6aefaa7232b4950484386ddced1f5e.tar.gz
lv2lint-d0f881777c6aefaa7232b4950484386ddced1f5e.tar.bz2
lv2lint-d0f881777c6aefaa7232b4950484386ddced1f5e.tar.xz
bsd: check for defined __unused before defining.
-rw-r--r--lv2lint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lv2lint.h b/lv2lint.h
index d2dc234..6534bf8 100644
--- a/lv2lint.h
+++ b/lv2lint.h
@@ -38,7 +38,9 @@
# include <curl/curl.h>
#endif
-#define __unused __attribute__((unused))
+#ifndef __unused
+# define __unused __attribute__((unused))
+#endif
typedef enum _ansi_color_t {
ANSI_COLOR_BOLD,