Commits

anatoly techtonik committed dbd0b1a

Python 2.7 compatibility - no wintypes.CHAR

Comments (0)

Files changed (1)

 
 # for calling ANSI functions of Windows API (end with A) TCHAR is
 # defined as single char, for Unicode ones (end witn W) it is WCHAR
-TCHAR = wintypes.CHAR
+CHAR = ctypes.c_char    # Python 2.7 compatibility
+TCHAR = CHAR
 BYTE = ctypes.c_ubyte   # http://bugs.python.org/issue16376
 
 # charset codes for LOGFONT structure