Mercurial > mplayer.hg
diff mp_msg.c @ 27393:4876c89bafdd
Rename font-related preprocessor directives.
Switch them from a HAVE_ to a CONFIG_ prefix.
author | diego |
---|---|
date | Thu, 07 Aug 2008 10:36:07 +0000 |
parents | d788e177a35e |
children | 9e739bdb049c |
line wrap: on
line diff
--- a/mp_msg.c Thu Aug 07 09:53:59 2008 +0000 +++ b/mp_msg.c Thu Aug 07 10:36:07 2008 +0000 @@ -5,7 +5,7 @@ #include "config.h" -#ifdef HAVE_ICONV +#ifdef CONFIG_ICONV #include <iconv.h> #include <errno.h> extern char* get_term_charset(void); @@ -29,7 +29,7 @@ int verbose = 0; int mp_msg_color = 0; int mp_msg_module = 0; -#ifdef HAVE_ICONV +#ifdef CONFIG_ICONV char *mp_msg_charset = NULL; static char *old_charset = NULL; static iconv_t msgiconv; @@ -37,7 +37,7 @@ const char* filename_recode(const char* filename) { -#if !defined(HAVE_ICONV) || !defined(MSG_CHARSET) +#if !defined(CONFIG_ICONV) || !defined(MSG_CHARSET) return filename; #else static iconv_t inv_msgiconv = (iconv_t)(-1); @@ -73,7 +73,7 @@ verbose = atoi(env); for(i=0;i<MSGT_MAX;i++) mp_msg_levels[i] = -2; mp_msg_levels[MSGT_IDENTIFY] = -1; // no -identify output by default -#ifdef HAVE_ICONV +#ifdef CONFIG_ICONV mp_msg_charset = getenv("MPLAYER_CHARSET"); if (!mp_msg_charset) mp_msg_charset = get_term_charset(); @@ -184,7 +184,7 @@ guiMessageBox(lev, tmp); #endif -#if defined(HAVE_ICONV) && defined(MSG_CHARSET) +#if defined(CONFIG_ICONV) && defined(MSG_CHARSET) if (mp_msg_charset && strcasecmp(mp_msg_charset, "noconv")) { char tmp2[MSGSIZE_MAX]; size_t inlen = strlen(tmp), outlen = MSGSIZE_MAX;