Skip to content

Commit

Permalink
Add symlink for BaseTsd.h in SDK headers.
Browse files Browse the repository at this point in the history
The capitalized version of this header is shown in Microsoft docs,
and it is used in places like the Pony runtime:
https://github.com/ponylang/ponyc/blob/8d41d6650b48b9733cd675df199588e6fccc6346/src/common/platform.h#L191

This commit adds a symlink for this file, in the same place in
the codebase where an special case already existed for another
header that is used by the `libzmq` project.
  • Loading branch information
jemc authored and Jake-Shadle committed May 4, 2022
1 parent e058266 commit 1513d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/splat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,11 @@ pub(crate) fn splat(
anyhow::bail!("found duplicate relative path when hashed");
}

// https://github.com/zeromq/libzmq/blob/3070a4b2461ec64129062907d915ed665d2ac126/src/precompiled.hpp#L73
if let Some(additional_name) = match fname_str {
// https://github.com/zeromq/libzmq/blob/3070a4b2461ec64129062907d915ed665d2ac126/src/precompiled.hpp#L73
"mstcpip.h" => Some("Mstcpip.h"),
// https://github.com/ponylang/ponyc/blob/8d41d6650b48b9733cd675df199588e6fccc6346/src/common/platform.h#L191
"basetsd.h" => Some("BaseTsd.h"),
_ => None,
} {
tar.pop();
Expand Down

0 comments on commit 1513d12

Please sign in to comment.