summaryrefslogtreecommitdiff
path: root/cffi/commontypes.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-01-07 18:38:22 +0100
committerArmin Rigo <arigo@tunes.org>2015-01-07 18:38:22 +0100
commitb85808d3e497f7e761a3e8bdd5e69ec42854c292 (patch)
treec3f8dd2d809dd57b94c7ff3fe72dfa1767bef82d /cffi/commontypes.py
parent8d61795b9e8d4059051f3742b07ecdeb90c82ae1 (diff)
downloadcffi-b85808d3e497f7e761a3e8bdd5e69ec42854c292.tar.gz
issue #172
Fix an inconsistency: the define "UNICODE" must be present explicitly iff we're declaring TCHAR to be a wchar_t.
Diffstat (limited to 'cffi/commontypes.py')
-rw-r--r--cffi/commontypes.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/cffi/commontypes.py b/cffi/commontypes.py
index 9daf2ff..1af24d6 100644
--- a/cffi/commontypes.py
+++ b/cffi/commontypes.py
@@ -86,8 +86,6 @@ def win_common_types(maxsize):
"ULONGLONG": "unsigned long long",
"WCHAR": "wchar_t",
"SHORT": "short",
- "TBYTE": "WCHAR",
- "TCHAR": "WCHAR",
"UCHAR": "unsigned char",
"UINT": "unsigned int",
"UINT8": "unsigned char",
@@ -157,14 +155,12 @@ def win_common_types(maxsize):
"LPCVOID": model.const_voidp_type,
"LPCWSTR": "const WCHAR *",
- "LPCTSTR": "LPCWSTR",
"LPDWORD": "DWORD *",
"LPHANDLE": "HANDLE *",
"LPINT": "int *",
"LPLONG": "long *",
"LPSTR": "CHAR *",
"LPWSTR": "WCHAR *",
- "LPTSTR": "LPWSTR",
"LPVOID": model.voidp_type,
"LPWORD": "WORD *",
"LRESULT": "LONG_PTR",
@@ -173,7 +169,6 @@ def win_common_types(maxsize):
"PBYTE": "BYTE *",
"PCHAR": "CHAR *",
"PCSTR": "const CHAR *",
- "PCTSTR": "LPCWSTR",
"PCWSTR": "const WCHAR *",
"PDWORD": "DWORD *",
"PDWORDLONG": "DWORDLONG *",
@@ -200,9 +195,6 @@ def win_common_types(maxsize):
"PSIZE_T": "SIZE_T *",
"PSSIZE_T": "SSIZE_T *",
"PSTR": "CHAR *",
- "PTBYTE": "TBYTE *",
- "PTCHAR": "TCHAR *",
- "PTSTR": "LPWSTR",
"PUCHAR": "UCHAR *",
"PUHALF_PTR": "UHALF_PTR *",
"PUINT": "UINT *",