Made bind_textdomain_codeset() only called on GLIBC 2.2 or higher,

to compile on old GLIBC system (such as RedHat-6.2).
This commit is contained in:
William Kendrick 2004-10-24 21:25:17 +00:00
parent bdc6d1eb4f
commit abdf7a063b
2 changed files with 7 additions and 0 deletions

View file

@ -4856,7 +4856,11 @@ void setup(int argc, char * argv[])
}
bindtextdomain("tuxpaint", LOCALEDIR);
/* Old version of glibc does not have bind_textdomain_codeset() */
#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2
bind_textdomain_codeset("tuxpaint", "UTF-8");
#endif
textdomain("tuxpaint");