#840: bencode.c (and others) does not compile without libintl.h

This commit is contained in:
Charles Kerr 2008-04-05 20:49:51 +00:00
parent fad4e528fe
commit 8930e63e8b
2 changed files with 4 additions and 3 deletions

View File

@ -116,6 +116,7 @@ if test "x$use_libnotify" = "xyes"; then
AC_DEFINE([HAVE_LIBNOTIFY], 1)
fi
AC_CHECK_HEADERS([libintl.h])
IT_PROG_INTLTOOL([0.23],[no-xml])
GETTEXT_PACKAGE=transmission
AC_SUBST(GETTEXT_PACKAGE)

View File

@ -35,14 +35,14 @@ void tr_msgInit( void );
#if !defined(_)
#if defined(SYS_DARWIN)
/*#include <CoreFoundation/CFBundle.h>
const char * tr_getMacLocalizedCString(CFStringRef string);
#define _(a) tr_getMacLocalizedCString(CFSTR(a))*/
#define _(a) (a)
#else
#elif HAVE_LIBINTL
#include <libintl.h>
#define _(a) gettext (a)
#else
#define _(a) (a)
#endif
#endif