Solaris 10 <locale.h> includes <libintl.h>, which #defines
gettext, and this causes a double #define.
Problem reported by Gavin Smith in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
* lib/regex_internal.h (gettext): #undef before #defining.
+2017-04-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: port better to Solaris 10
+ Solaris 10 <locale.h> includes <libintl.h>, which #defines
+ gettext, and this causes a double #define.
+ Problem reported by Gavin Smith in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
+ * lib/regex_internal.h (gettext): #undef before #defining.
+
2017-04-15 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
intprops: improve comments
__dcgettext (_libc_intl_domainname, msgid, LC_MESSAGES)
# endif
#else
+# undef gettext
# define gettext(msgid) (msgid)
#endif