#840: bencode.c (and others) does not compile without libintl.h
This commit is contained in:
parent
fad4e528fe
commit
8930e63e8b
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue