From 841bb0a1fd73f71865ec29027a8f6de8ed0efa74 Mon Sep 17 00:00:00 2001 From: expikr <77922942+expikr@users.noreply.github.com> Date: Fri, 10 May 2024 00:48:05 -0700 Subject: [PATCH] std.os.windows: add compileError warning against `TCHAR` & their corresponding string/pointer types (#18741) --- lib/std/os/windows.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 1fad11ceee..72078c0144 100644 --- 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;