mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[initbanner] protect against USE_DEFLATE=off
This commit is contained in:
parent
3b6e08333f
commit
e03554870e
@ -1,4 +1,6 @@
|
|||||||
|
#ifdef USE_DEFLATE
|
||||||
#include <libdeflate.h>
|
#include <libdeflate.h>
|
||||||
|
#endif
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
// only invoked without suppress banners flag. prints various warnings based on
|
// only invoked without suppress banners flag. prints various warnings based on
|
||||||
@ -82,7 +84,13 @@ int init_banner(const notcurses* nc, fbuf* f){
|
|||||||
#else
|
#else
|
||||||
#error "No __BYTE_ORDER__ definition"
|
#error "No __BYTE_ORDER__ definition"
|
||||||
#endif
|
#endif
|
||||||
clreol, ncver, LIBDEFLATE_VERSION_STRING, gpm_version());
|
clreol, ncver,
|
||||||
|
#ifdef USE_DEFLATE
|
||||||
|
LIBDEFLATE_VERSION_STRING,
|
||||||
|
#else
|
||||||
|
"n/a",
|
||||||
|
#endif
|
||||||
|
gpm_version());
|
||||||
fbuf_puts(f, clreol); // for ncvisual banner
|
fbuf_puts(f, clreol); // for ncvisual banner
|
||||||
ncvisual_printbanner(f);
|
ncvisual_printbanner(f);
|
||||||
init_banner_warnings(nc, f, clreol);
|
init_banner_warnings(nc, f, clreol);
|
||||||
|
Loading…
Reference in New Issue
Block a user