]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Improve conflict resolution between gnulib and textstyle.h.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:47:20 +0000 (03:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 16:37:03 +0000 (18:37 +0200)
* libtextstyle/lib/textstyle.h (libtextstyle_isatty): Don't override a Gnulib
override.

libtextstyle/lib/textstyle.h

index 4ab09fdcfbd552705dae2afe4e2f0b3c9f414394..ce0bf6e019e43c6f12882f2b45f7d39b1eae6f58 100644 (file)
@@ -1,5 +1,5 @@
 /* Public API of the libtextstyle library.
-   Copyright (C) 2006-2007, 2019-2020 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007, 2019-2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -690,9 +690,11 @@ extern void libtextstyle_set_failure_exit_code (int exit_code);
 extern "C" {
 # endif
 
+# if !((defined isatty && defined _GL_UNISTD_H) || defined GNULIB_overrides_isatty) /* don't override gnulib */
 extern int libtextstyle_isatty (int fd);
-# undef isatty
-# define isatty libtextstyle_isatty
+#  undef isatty
+#  define isatty libtextstyle_isatty
+# endif
 
 # ifdef __cplusplus
 }