]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't imply XPG4 constants from CODESET presence. Fixes #534153.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 27 Mar 2002 12:15:57 +0000 (12:15 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 27 Mar 2002 12:15:57 +0000 (12:15 +0000)
2.2.2 candiate.

Modules/_localemodule.c

index cfbef9f432ddac64658d1fe14492adde06108f0b..e72999c471d486212663c583eaa5eecb437e6653 100644 (file)
@@ -478,9 +478,12 @@ struct langinfo_constant{
     LANGINFO(AM_STR),
     LANGINFO(PM_STR),
 
+    /* The following constants are available only with XPG4. AIX 3.2. only has
+       CODESET. */
 #ifdef CODESET
-    /* The following constants are available only with XPG4. */
     LANGINFO(CODESET),
+#endif
+#ifdef T_FMT_AMPM
     LANGINFO(T_FMT_AMPM),
     LANGINFO(ERA),
     LANGINFO(ERA_D_FMT),