From: Karel Zak Date: Wed, 25 Feb 2015 11:35:05 +0000 (+0100) Subject: lib/colors: add USAGE_COLORS_DEFAULT X-Git-Tag: v2.26.1~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=805f7b88e233b63493f4aacbe8529e7e3422984c;p=thirdparty%2Futil-linux.git lib/colors: add USAGE_COLORS_DEFAULT Signed-off-by: Karel Zak --- diff --git a/include/colors.h b/include/colors.h index 97efc486ac..df6feb7394 100644 --- a/include/colors.h +++ b/include/colors.h @@ -39,6 +39,7 @@ #define UL_COLOR_WHITE "\033[1;37m" + /* --color[=WHEN] */ enum colortmode { UL_COLORMODE_AUTO = 0, @@ -49,6 +50,12 @@ enum colortmode { __UL_NCOLORMODES /* last */ }; +#ifdef USE_COLORS_BY_DEFAUL +# define USAGE_COLORS_DEFAULT N_("colors enabled by default") +#else +# define USAGE_COLORS_DEFAULT N_("colors disabled by default") +#endif + extern int colormode_from_string(const char *str); extern int colormode_or_err(const char *str, const char *errmsg);