authorgravatar for 77922942+expikr@users.noreply.github.comexpikr <77922942+expikr@users.noreply.github.com> 2024-05-10 00:48:05-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-05-10 07:48:05+00:00
log841bb0a1fd73f71865ec29027a8f6de8ed0efa74
tree670a47d70140ae82d1ab656e9d6c11fe1242ae49
parentc4e3a49898fbfaf5fe890385656dac62ef3028fc
signaturebadge-check Signed by PGP key B5690EEEBB952194

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


1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/os/windows.zig+6
......@@ -2868,6 +2868,12 @@ pub const LRESULT = LONG_PTR;
28682868
28692869pub const va_list = *opaque {};
28702870
2871pub const TCHAR = @compileError("Deprecated: choose between `CHAR` or `WCHAR` directly instead.");
2872pub const LPTSTR = @compileError("Deprecated: choose between `LPSTR` or `LPWSTR` directly instead.");
2873pub const LPCTSTR = @compileError("Deprecated: choose between `LPCSTR` or `LPCWSTR` directly instead.");
2874pub const PTSTR = @compileError("Deprecated: choose between `PSTR` or `PWSTR` directly instead.");
2875pub const PCTSTR = @compileError("Deprecated: choose between `PCSTR` or `PCWSTR` directly instead.");
2876
28712877pub const TRUE = 1;
28722878pub const FALSE = 0;
28732879