wrc: Avoid an unused function warning when HAVE_LIBGETTEXTPO is not defined.

This commit is contained in:
Henri Verbeet 2012-01-30 21:19:49 +01:00 committed by Alexandre Julliard
parent 0d8e6719d5
commit 187065e1c3

View file

@ -124,16 +124,6 @@ static char *get_message_context( char **msgid )
return context;
}
static int string_has_context( const string_t *str )
{
char *id, *id_buffer, *context;
id_buffer = id = convert_msgid_ascii( str, 1 );
context = get_message_context( &id );
free( id_buffer );
return context != NULL;
}
static int control_has_title( const control_t *ctrl )
{
if (!ctrl->title) return 0;
@ -819,6 +809,16 @@ static void add_po_menu( const resource_t *english, const resource_t *res )
add_po_menu_items( po, english_items, items, res->res.men->lvc.language );
}
static int string_has_context( const string_t *str )
{
char *id, *id_buffer, *context;
id_buffer = id = convert_msgid_ascii( str, 1 );
context = get_message_context( &id );
free( id_buffer );
return context != NULL;
}
static void add_pot_accel( po_file_t po, const resource_t *res )
{
event_t *event = res->res.acc->events;