Especially, plugins are not supposed to link with -lintl directly.
#define gettext(str) vlc_gettext (str)
#define pgettext(ctx,id) vlc_pgettext(ctx,id)
-#if defined (ENABLE_NLS)
-# include <libintl.h>
-#endif
-
#define N_(str) gettext_noop (str)
#define gettext_noop(str) (str)
#endif
}
+#ifdef ENABLE_NLS
+# undef gettext
+# include <libintl.h>
+#endif
+
/**
* In-tree plugins share their gettext domain with LibVLC.
*/
# include <locale.h>
#endif
+#ifdef ENABLE_NLS
+# undef gettext
+# include <libintl.h> /* bindtextdomain */
+#endif
+
#ifdef HAVE_DBUS
/* used for one-instance mode */
# include <dbus/dbus.h>
#include <assert.h>
#include <stdarg.h>
+#ifdef ENABLE_NLS
+# undef gettext
+# include <libintl.h>
+#endif
+
#include "modules/modules.h"
#include "config/configuration.h"
#include "libvlc.h"