Ticket #44288: patch-Include-pyport.h.diff
File patch-Include-pyport.h.diff, 587 bytes (added by mbrethen, 10 years ago) |
---|
-
Include/pyport.h
old new 713 713 #endif 714 714 715 715 #ifdef _PY_PORT_CTYPE_UTF8_ISSUE 716 #ifndef __cplusplus 717 /* The workaround below is unsafe in C++ because 718 * the <locale> defines these symbols as real functions, 719 * with a slightly different signature. 720 * See issue #10910 721 */ 716 722 #include <ctype.h> 717 723 #include <wctype.h> 718 724 #undef isalnum … … 730 736 #undef toupper 731 737 #define toupper(c) towupper(btowc(c)) 732 738 #endif 739 #endif 733 740 734 741 735 742 /* Declarations for symbol visibility.