mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Remove "convenience header" "gettext.h" and use <libintl.h> instead.
gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
This commit is contained in:
@@ -31,24 +31,12 @@
|
||||
#include <sys/wait.h>
|
||||
#include <locale.h>
|
||||
#include <limits.h>
|
||||
#include <libintl.h>
|
||||
|
||||
#include <guestfs.h>
|
||||
|
||||
#ifdef HAVE_GETTEXT
|
||||
#include "gettext.h"
|
||||
#define _(str) dgettext(PACKAGE, (str))
|
||||
//#define N_(str) dgettext(PACKAGE, (str))
|
||||
#else
|
||||
#define _(str) str
|
||||
//#define N_(str) str
|
||||
#endif
|
||||
|
||||
#if !ENABLE_NLS
|
||||
#undef textdomain
|
||||
#define textdomain(Domainname) /* empty */
|
||||
#undef bindtextdomain
|
||||
#define bindtextdomain(Domainname, Dirname) /* empty */
|
||||
#endif
|
||||
|
||||
#define STREQ(a,b) (strcmp((a),(b)) == 0)
|
||||
//#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
|
||||
|
||||
Reference in New Issue
Block a user