diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-05-02 18:37:05 -0400 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-03 18:49:20 +0200 |
commit | cefc6820c1c309534fbd671a3f051a66204a4438 (patch) | |
tree | 677e8deaca23a095ea5b44821ec2ca41b89508aa | |
parent | 9f7b4c497ec0141ffb4edb5aab9d09a6a67b6955 (diff) | |
download | weechat-cefc6820c1c309534fbd671a3f051a66204a4438.zip |
core: remove unused header
weechat.h already handles libintl.h and defining suitable macros.
Including it again does nothing other than emit a compile warning when
compiling without NLS:
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:35:
/var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/weechat.h:49: warning: "gettext" redefined
49 | #define gettext(string) (string)
|
In file included from /var/tmp/portage/net-irc/weechat-9999/work/weechat-9999/src/core/core-doc.c:30:
/usr/include/libintl.h:109: note: this is the location of the previous definition
109 | # define gettext(msgid) dgettext (NULL, msgid)
-rw-r--r-- | src/core/core-doc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/core-doc.c b/src/core/core-doc.c index 1b6095a7f..d04ecd4a9 100644 --- a/src/core/core-doc.c +++ b/src/core/core-doc.c @@ -27,7 +27,6 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <libintl.h> #include <locale.h> #include <gcrypt.h> #include <regex.h> |