dialog: guard macros definition to avoid redifinition

This unbreaks building libdpv
This commit is contained in:
Baptiste Daroussin 2021-02-26 11:13:43 +01:00
parent ec74116ace
commit 172f2fc11c

View File

@ -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