Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > d8c679353daa984effd8ef75a56451e3 > files > 12

mingw-python3-3.10.9-1.mga9.src.rpm

diff -rupN --no-dereference Python-3.10.9/Modules/_localemodule.c Python-3.10.9-new/Modules/_localemodule.c
--- Python-3.10.9/Modules/_localemodule.c	2022-12-08 09:36:56.552024798 +0100
+++ Python-3.10.9-new/Modules/_localemodule.c	2022-12-08 09:37:03.998024965 +0100
@@ -162,7 +162,7 @@ locale_is_ascii(const char *str)
 static int
 locale_decode_monetary(PyObject *dict, struct lconv *lc)
 {
-#ifndef MS_WINDOWS
+#ifndef _MSC_VER
     int change_locale;
     change_locale = (!locale_is_ascii(lc->int_curr_symbol)
                      || !locale_is_ascii(lc->currency_symbol)
@@ -199,10 +199,10 @@ locale_decode_monetary(PyObject *dict, s
     }
 
 #define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
-#else  /* MS_WINDOWS */
+#else  /* _MSC_VER */
 /* Use _W_* fields of Windows struct lconv */
 #define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
-#endif /* MS_WINDOWS */
+#endif /* _MSC_VER */
 
     int res = -1;
 
@@ -275,7 +275,7 @@ _locale_localeconv_impl(PyObject *module
         Py_DECREF(obj); \
     } while (0)
 
-#ifdef MS_WINDOWS
+#ifdef _MSC_VER
 /* Use _W_* fields of Windows struct lconv */
 #define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
 #else
diff -rupN --no-dereference Python-3.10.9/Python/fileutils.c Python-3.10.9-new/Python/fileutils.c
--- Python-3.10.9/Python/fileutils.c	2022-12-08 09:37:03.722024959 +0100
+++ Python-3.10.9-new/Python/fileutils.c	2022-12-08 09:37:03.999024965 +0100
@@ -2288,7 +2288,7 @@ _Py_GetLocaleconvNumeric(struct lconv *l
     assert(decimal_point != NULL);
     assert(thousands_sep != NULL);
 
-#ifndef MS_WINDOWS
+#ifndef _MSC_VER
     int change_locale = 0;
     if ((strlen(lc->decimal_point) > 1 || ((unsigned char)lc->decimal_point[0]) > 127)) {
         change_locale = 1;
@@ -2328,10 +2328,10 @@ _Py_GetLocaleconvNumeric(struct lconv *l
     }
 
 #define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
-#else /* MS_WINDOWS */
+#else /* _MSC_VER */
 /* Use _W_* fields of Windows strcut lconv */
 #define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
-#endif /* MS_WINDOWS */
+#endif /* _MSC_VER */
 
     int res = -1;