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  
    713713#endif
    714714
    715715#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    */
    716722#include <ctype.h>
    717723#include <wctype.h>
    718724#undef isalnum
     
    730736#undef toupper
    731737#define toupper(c) towupper(btowc(c))
    732738#endif
     739#endif
    733740
    734741
    735742/* Declarations for symbol visibility.