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:
parent
bdc6d1eb4f
commit
abdf7a063b
2 changed files with 7 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
* Added larger screen size support: 1024x768, 1280x1024, 1400x1050, 1600x1200
|
* Added larger screen size support: 1024x768, 1280x1024, 1400x1050, 1600x1200
|
||||||
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>
|
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)
|
2004.September.28 (0.9.14)
|
||||||
* New Features:
|
* New Features:
|
||||||
|
|
|
||||||
|
|
@ -4856,7 +4856,11 @@ void setup(int argc, char * argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
bindtextdomain("tuxpaint", LOCALEDIR);
|
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");
|
bind_textdomain_codeset("tuxpaint", "UTF-8");
|
||||||
|
#endif
|
||||||
|
|
||||||
textdomain("tuxpaint");
|
textdomain("tuxpaint");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue