commit 841bb0a1fd73f71865ec29027a8f6de8ed0efa74 (tree) parent c4e3a49898fbfaf5fe890385656dac62ef3028fc Author: expikr <77922942+expikr@users.noreply.github.com> Date: Fri, 10 May 2024 00:48:05 -0700 std.os.windows: add compileError warning against `TCHAR` & their corresponding string/pointer types (#18741) Diffstat:
| M | lib/std/os/windows.zig | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig @@ -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;