mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
* add DISABLE_GETTEXT preprocessor directive to turn off i18n in libtransmission for embedded devices.
* remove `wchar.h' #include from shttpd that broke the compile on embedded devices.
This commit is contained in:
@@ -91,6 +91,13 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* #define DISABLE_GETTEXT */
|
||||
#ifdef DISABLE_GETTEXT
|
||||
const char* tr_strip_positional_args( const char* fmt );
|
||||
#undef _
|
||||
#define _(a) tr_strip_positional_args(a)
|
||||
#endif
|
||||
|
||||
#define tr_nerr( n, a... ) tr_msg( __FILE__, __LINE__, TR_MSG_ERR, n, ## a )
|
||||
#define tr_ninf( n, a... ) tr_msg( __FILE__, __LINE__, TR_MSG_INF, n, ## a )
|
||||
#define tr_ndbg( n, a... ) tr_msg( __FILE__, __LINE__, TR_MSG_DBG, n, ## a )
|
||||
|
||||
Reference in New Issue
Block a user