aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-02-26 10:13:43 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-02-26 10:13:43 +0000
commit172f2fc11cc560bbd3d3b29260a8ae21df6a541b (patch)
treed9417b889b4363e1f202cba6e71bc361cafec068 /gnu
parentec74116ace52591cf121623e2010ae5efab5524a (diff)
downloadsrc-172f2fc11cc560bbd3d3b29260a8ae21df6a541b.tar.gz
src-172f2fc11cc560bbd3d3b29260a8ae21df6a541b.zip
dialog: guard macros definition to avoid redifinition
This unbreaks building libdpv
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libdialog/dlg_config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/dlg_config.h b/gnu/lib/libdialog/dlg_config.h
index 1bd45183f509..30df29f877c6 100644
--- a/gnu/lib/libdialog/dlg_config.h
+++ b/gnu/lib/libdialog/dlg_config.h
@@ -9,12 +9,20 @@
#define CURSES_WACS_SYMBOLS 1
#define DIALOG_PATCHDATE 20210117
#define DIALOG_VERSION "1.3"
+#ifndef GCC_NORETURN
#define GCC_NORETURN __attribute__((noreturn))
+#endif
#define GCC_PRINTF 1
+#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
+#endif
#define GCC_SCANF 1
+#ifndef GCC_SCANFLIKE
#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
+#endif
+#ifndef GCC_UNUSED
#define GCC_UNUSED __attribute__((unused))
+#endif
#define HAVE_ALLOCA 1
#define HAVE_BTOWC 1
#define HAVE_COLOR 1