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

@ -20,6 +20,9 @@ http://www.newbreedsoftware.com/tuxpaint/
* Added larger screen size support: 1024x768, 1280x1024, 1400x1050, 1600x1200
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>
* Fixed to compile on old GLIBC system (such as RedHat-6.2)
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>
2004.September.28 (0.9.14)
* New Features:

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");