mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
#840: bencode.c (and others) does not compile without libintl.h
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user