mirror of
https://github.com/anope/anope.git
synced 2026-06-28 11:06:37 +02:00
Modules to not need to include libintl.h because they are not linked to libintl and do not directly call its code. #define _(x) to x just so xgettext is able to pick out language strings.
This commit is contained in:
+1
-7
@@ -4,12 +4,6 @@
|
||||
#include "services.h"
|
||||
#include "commands.h"
|
||||
#include "modules.h"
|
||||
|
||||
#if GETTEXT_FOUND
|
||||
# include <libintl.h>
|
||||
# define _(x) gettext(x)
|
||||
#else
|
||||
# define _(x) x
|
||||
#endif
|
||||
#define _(x) x
|
||||
|
||||
#endif // MODULE_H
|
||||
|
||||
Reference in New Issue
Block a user