From 7352e86848a45259d462dfd9b3f601ee8b181e02 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Sun, 22 Nov 2009 10:13:00 +0000 Subject: [PATCH] smash_i18n only used in NO_SDLPANGO builds --- src/i18n.c | 2 ++ src/i18n.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/i18n.c b/src/i18n.c index b4bfaa646..25e1d06f5 100644 --- a/src/i18n.c +++ b/src/i18n.c @@ -735,6 +735,7 @@ int setup_i18n(const char *restrict lang, const char *restrict locale) } #endif +#ifdef NO_SDLPANGO int smash_i18n(void) { #ifdef ABUSE_ENV @@ -743,3 +744,4 @@ int smash_i18n(void) #endif return set_current_language("C"); } +#endif diff --git a/src/i18n.h b/src/i18n.h index b0781eeef..f8cddae24 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -149,6 +149,8 @@ extern const char *lang_prefix, *short_lang_prefix; int get_current_language(void); int setup_i18n(const char *restrict lang, const char *restrict locale) MUST_CHECK; +#ifdef NO_SDLPANGO int smash_i18n(void) MUST_CHECK; +#endif #endif