aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2020-12-30 12:14:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-01-06 16:41:40 -0800
commitf1ef0a80f1d614bbbb9ad8fae7992d55111c8cd7 (patch)
tree9b93cb231e99c2b17c3428b5a7541c706ea0b6fa /lib
parent5ee04315272ba19e3d329ad21d38e9e425e21ab5 (diff)
downloadzig-f1ef0a80f1d614bbbb9ad8fae7992d55111c8cd7.tar.gz
zig-f1ef0a80f1d614bbbb9ad8fae7992d55111c8cd7.zip
fix LRESULT and LPARAM typedefs
LRESULT and LPARAM are currently typedef'd as ?*c_void, however, they are supposed to be typedef'd as LONG_PTR which is equivalent to isize in Zig.
Diffstat (limited to 'lib')
-rw-r--r--lib/std/os/windows/bits.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig
index 6eeafe089f..6b0a375b94 100644
--- a/lib/std/os/windows/bits.zig
+++ b/lib/std/os/windows/bits.zig
@@ -84,8 +84,8 @@ pub const HLOCAL = HANDLE;
pub const LANGID = c_ushort;
pub const WPARAM = usize;
-pub const LPARAM = ?*c_void;
-pub const LRESULT = ?*c_void;
+pub const LPARAM = LONG_PTR;
+pub const LRESULT = LONG_PTR;
pub const va_list = *opaque {};