std.os.windows: add compileError warning against TCHAR & their corresponding string/pointer types (#18741)

This commit is contained in:
expikr 2024-05-10 00:48:05 -07:00 committed by GitHub
parent c4e3a49898
commit 841bb0a1fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2868,6 +2868,12 @@ pub const LRESULT = LONG_PTR;
pub const va_list = *opaque {};
pub const TCHAR = @compileError("Deprecated: choose between `CHAR` or `WCHAR` directly instead.");
pub const LPTSTR = @compileError("Deprecated: choose between `LPSTR` or `LPWSTR` directly instead.");
pub const LPCTSTR = @compileError("Deprecated: choose between `LPCSTR` or `LPCWSTR` directly instead.");
pub const PTSTR = @compileError("Deprecated: choose between `PSTR` or `PWSTR` directly instead.");
pub const PCTSTR = @compileError("Deprecated: choose between `PCSTR` or `PCWSTR` directly instead.");
pub const TRUE = 1;
pub const FALSE = 0;