aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorexpikr <77922942+expikr@users.noreply.github.com>2024-05-10 00:48:05 -0700
committerGitHub <noreply@github.com>2024-05-10 07:48:05 +0000
commit841bb0a1fd73f71865ec29027a8f6de8ed0efa74 (patch)
tree670a47d70140ae82d1ab656e9d6c11fe1242ae49 /lib/std
parentc4e3a49898fbfaf5fe890385656dac62ef3028fc (diff)
downloadzig-841bb0a1fd73f71865ec29027a8f6de8ed0efa74.tar.gz
zig-841bb0a1fd73f71865ec29027a8f6de8ed0efa74.zip
std.os.windows: add compileError warning against `TCHAR` & their corresponding string/pointer types (#18741)
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/os/windows.zig6
1 files changed, 6 insertions, 0 deletions
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;