mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bpo-46670: Test if a macro is defined, not its value (GH-31178)
* audioop.c: #ifdef WORDS_BIGENDIAN * ctypes.h: #ifdef USING_MALLOC_CLOSURE_DOT_C * _ctypes/malloc_closure.c: #ifdef HAVE_FFI_CLOSURE_ALLOC and #ifdef USING_APPLE_OS_LIBFFI * pytime.c: #ifdef __APPLE__ * unicodeobject.c: #ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
This commit is contained in:
parent
097f74a5a3
commit
b556f53785
7 changed files with 16 additions and 16 deletions
|
@ -61,7 +61,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||
#include "pycore_fileutils.h" // _Py_LocaleUsesNonUnicodeWchar()
|
||||
# include "pycore_fileutils.h" // _Py_LocaleUsesNonUnicodeWchar()
|
||||
#endif
|
||||
|
||||
/* Uncomment to display statistics on interned strings at exit
|
||||
|
@ -3344,7 +3344,7 @@ PyUnicode_AsWideChar(PyObject *unicode,
|
|||
}
|
||||
unicode_copy_as_widechar(unicode, w, size);
|
||||
|
||||
#if HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||
/* Oracle Solaris uses non-Unicode internal wchar_t form for
|
||||
non-Unicode locales and hence needs conversion first. */
|
||||
if (_Py_LocaleUsesNonUnicodeWchar()) {
|
||||
|
@ -3381,7 +3381,7 @@ PyUnicode_AsWideCharString(PyObject *unicode,
|
|||
}
|
||||
unicode_copy_as_widechar(unicode, buffer, buflen + 1);
|
||||
|
||||
#if HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||
#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
|
||||
/* Oracle Solaris uses non-Unicode internal wchar_t form for
|
||||
non-Unicode locales and hence needs conversion first. */
|
||||
if (_Py_LocaleUsesNonUnicodeWchar()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue