summaryrefslogtreecommitdiff
path: root/src/getargs.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-03-17 19:40:08 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-03-24 18:40:46 +0100
commit4d34b06fb3a38eb050439084476a6b3e292c5680 (patch)
treeb11d187ccd048f3ef861bfcda3715bd99bede097 /src/getargs.c
parent22a413ce9f171979f03f3c78e5fd04ed6b07c9da (diff)
downloadbison-4d34b06fb3a38eb050439084476a6b3e292c5680.tar.gz
diagnostics: use gnulib's libtextstyle-optional
Bruno Haible just added a default implementation of libtextstyle's interface when the library is not available. https://lists.gnu.org/archive/html/bison-patches/2019-03/msg00025.html * gnulib: Update. * bootstrap.conf: Replace libtextstyle with libtextstyle-optional. * src/complain.c, src/getargs.c: Remove now useless cpp guards.
Diffstat (limited to 'src/getargs.c')
-rw-r--r--src/getargs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/getargs.c b/src/getargs.c
index 3e28d1cf..4f8153a3 100644
--- a/src/getargs.c
+++ b/src/getargs.c
@@ -30,10 +30,7 @@
#include <getopt.h>
#include <progname.h>
#include <quote.h>
-
-#if HAVE_LIBTEXTSTYLE
-# include <textstyle.h>
-#endif
+#include <textstyle.h>
#include "complain.h"
#include "files.h"
@@ -590,7 +587,6 @@ command_line_location (void)
static void
getargs_colors (int argc _GL_UNUSED, char *argv[] _GL_UNUSED)
{
-#if HAVE_LIBTEXTSTYLE
for (int i = 1; i < argc; i++)
{
const char *arg = argv[i];
@@ -600,7 +596,6 @@ getargs_colors (int argc _GL_UNUSED, char *argv[] _GL_UNUSED)
handle_style_option (arg + strlen ("--style="));
}
complain_init_color ();
-#endif
}