diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-15 17:14:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-15 17:14:33 (GMT) |
commit | f95dd0a2986392d4f51bb1dd17db50ff40aa90d5 (patch) | |
tree | 9a8a9c569d68b7bbdfde292bd66a5b71fa62dc02 /Modules/_localemodule.c | |
parent | 834a85a235020379935418510c0043f08a08a2a5 (diff) | |
download | cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.zip cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.gz cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.bz2 |
Fix portability problems with glibc 2.0, as reported in #449157.
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r-- | Modules/_localemodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 3f11054..7f7bdd2 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -527,6 +527,8 @@ init_locale(void) ADDINT(ABMON_11); ADDINT(ABMON_12); +#ifdef RADIXCHAR + /* The following are not available with glibc 2.0 */ ADDINT(RADIXCHAR); ADDINT(THOUSEP); /* YESSTR and NOSTR are deprecated in glibc, since they are @@ -537,6 +539,7 @@ init_locale(void) ADDINT(NOSTR); */ ADDINT(CRNCYSTR); +#endif ADDINT(D_T_FMT); ADDINT(D_FMT); |