Commit 841bb0a1fd

expikr <77922942+expikr@users.noreply.github.com>
2024-05-10 09:48:05
std.os.windows: add compileError warning against `TCHAR` & their corresponding string/pointer types (#18741)
1 parent c4e3a49
Changed files (1)
lib
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;