Add gettext.h convenience header. This is similar to but distinct from

the one included with the gettext package.
This commit is contained in:
Todd C. Miller
2011-05-20 11:48:17 -04:00
parent a05e963690
commit bf7e7b5752
19 changed files with 108 additions and 98 deletions

View File

@@ -23,17 +23,15 @@
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#ifdef HAVE_LIBINTL_H
# include <libintl.h>
# undef _
# define _(String) dgettext("sudoers", String)
#endif
#include "missing.h"
#include "alloc.h"
#include "error.h"
#include "sudo_plugin.h"
#define DEFAULT_TEXT_DOMAIN "sudoers"
#include "gettext.h"
static void _warning(int, const char *, va_list);
void plugin_cleanup(int);