-
Notifications
You must be signed in to change notification settings - Fork 582
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Which crate is this about?
windows-bindgen
Crate version
0.49.0
Summary
When binding string constants there are 2 issues.
- String constants are
Type::String
, which gets resolved toHSTRING
, and while it's unlikely, if you don't bind another item that pulls inPCSTR
orPCWSTR
(the string types thatType::String
constants actually get resolved to) then there will be a missing typedef. - String constants unconditionally assume that the
s!
andw!
macros are available.
Toolchain version/configuration
No response
Reproducible example
No response
Crate manifest
No response
Expected behavior
The emitted string constants should compile correctly.
Actual behavior
The emitted constants will fail to compile due to the unknown s!
or w!
macro(s), and possibly due to missing the type aliases for PCSTR
and/or PCWSTR
.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request