(trunk) #3311 "MingW build of Transmission" -- modify tr_strip_positional_args() to strip out the ' printf flag. Platforms not supporting $ tend to not support ' either

This commit is contained in:
Charles Kerr
2010-06-25 01:13:35 +00:00
parent 41f9ae0500
commit 1f3ead026d
3 changed files with 32 additions and 7 deletions

View File

@@ -88,6 +88,8 @@ extern "C" {
****
***/
const char * tr_strip_positional_args( const char * fmt );
#if !defined( _ )
#if defined( HAVE_LIBINTL_H ) && !defined( SYS_DARWIN )
#include <libintl.h>
@@ -104,7 +106,6 @@ extern "C" {
#endif
#endif
#ifdef DISABLE_GETTEXT
const char * tr_strip_positional_args( const char * fmt );
#undef _
#define _( a ) tr_strip_positional_args( a )
#endif