Module: wine Branch: master Commit: 187065e1c34811f5876afca41e76d97e2a64116f URL: http://source.winehq.org/git/wine.git/?a=commit;h=187065e1c34811f5876afca41e...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jan 30 21:19:49 2012 +0100
wrc: Avoid an unused function warning when HAVE_LIBGETTEXTPO is not defined.
---
tools/wrc/po.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/tools/wrc/po.c b/tools/wrc/po.c index 1d679ba..b4497c9 100644 --- a/tools/wrc/po.c +++ b/tools/wrc/po.c @@ -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;