Fri Dec 7 14:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/internal.h: Use gnulib gettext library.  Define
	  INET_ADDRSTRLEN unless already defined.
This commit is contained in:
Richard W.M. Jones 2007-12-07 14:52:24 +00:00
parent f1f94721ae
commit f3ebd20d35
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Dec 7 14:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* src/internal.h: Use gnulib gettext library. Define
INET_ADDRSTRLEN unless already defined.
Fri Dec 7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* src/.cvsignore: Ignore *.loT files (generated under Windows).
@ -8,6 +13,10 @@ Fri Dec 7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
configured --without-qemu.
* src/nodeinfo.c: If no 'uname' function, set model name to
empty string (for Windows).
* src/xen_unified.h, src/util.c, src/test.c: Include <winsock2.h>
on Windows.
* src/util.c: Disable virExec* and virFileLinkPointsTo on
MinGW.
Fri Dec 7 14:34:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

View File

@ -12,11 +12,12 @@
#include <sys/syslimits.h>
#endif
#include "gettext.h"
#include "hash.h"
#include "libvirt/libvirt.h"
#include "libvirt/virterror.h"
#include "driver.h"
#include <libintl.h>
#ifdef __cplusplus
extern "C" {
@ -36,9 +37,12 @@ extern "C" {
#define IF_NAMESIZE 16
#endif
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#endif
#define _(str) dgettext(GETTEXT_PACKAGE, (str))
#define N_(str) dgettext(GETTEXT_PACKAGE, (str))
#define gettext_noop(str) (str)
/* String equality tests, suggested by Jim Meyering. */
#define STREQ(a,b) (strcmp((a),(b)) == 0)