]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Fix build failure on mingw (regression from 2019-03-17).
authorBruno Haible <bruno@clisp.org>
Wed, 10 Apr 2019 22:46:51 +0000 (00:46 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 11 Apr 2019 09:22:44 +0000 (11:22 +0200)
* libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that
isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'.

libtextstyle/lib/Makefile.am

index 8388716e55ac04b8ffa61d71e8f70e6fc6834114..9f2cb0e17262bce9f5feaadcaa1b45327b46ee53 100644 (file)
@@ -198,6 +198,9 @@ config.h: $(BUILT_SOURCES) libtextstyle.sym
          echo '#include "../config.h"'; \
          echo; \
          echo '#endif /* LIBTEXTSTYLE_CONFIG_H */'; \
+         case "@host_os@" in \
+           mingw*) echo '#define isatty libtextstyle_isatty' ;; \
+         esac; \
        } > config.h && \
        if test -n "$(NAMESPACING)" && test -n "$(HAVE_GLOBAL_SYMBOL_PIPE)"; then \
          { \