]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/colors: add USAGE_COLORS_DEFAULT
authorKarel Zak <kzak@redhat.com>
Wed, 25 Feb 2015 11:35:05 +0000 (12:35 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Feb 2015 11:35:05 +0000 (12:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/colors.h

index 97efc486acf8a1d4c0a7c9d6b4f210a9d881ec1c..df6feb7394b96ff1ae0ed26eb465fcda6a18b42b 100644 (file)
@@ -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);