Skip to content

Commit 55d99da

Browse files
petesmcfolkertdev
authored andcommitted
Remove Windows GNU restriction and add to CI
1 parent 8cdd6a9 commit 55d99da

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/checks.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
os: windows-2022
4949
features: ""
5050
target: "x86_64-pc-windows-gnu"
51+
- rust: stable-x86_64-msvc
52+
os: windows-2022
53+
features: ""
54+
target: "x86_64-pc-windows-msvc"
5155
steps:
5256
- name: Checkout sources
5357
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

bzip2.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131
static mut stdout_handle: *mut FILE;
3232
}
3333

34-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
34+
#[cfg(target_os = "windows")]
3535
extern "C" {
3636
fn __acrt_iob_func(idx: libc::c_uint) -> *mut FILE;
3737
}
@@ -43,7 +43,7 @@ macro_rules! STDIN {
4343
};
4444
}
4545

46-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
46+
#[cfg(target_os = "windows")]
4747
macro_rules! STDIN {
4848
() => {
4949
__acrt_iob_func(0)
@@ -57,7 +57,7 @@ macro_rules! STDOUT {
5757
};
5858
}
5959

60-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
60+
#[cfg(target_os = "windows")]
6161
macro_rules! STDOUT {
6262
() => {
6363
__acrt_iob_func(1)

libbz2-rs-sys/src/high_level.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
static mut stdout: *mut FILE;
3434
}
3535

36-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
36+
#[cfg(target_os = "windows")]
3737
extern "C" {
3838
fn __acrt_iob_func(idx: libc::c_uint) -> *mut FILE;
3939
}
@@ -45,7 +45,7 @@ macro_rules! STDIN {
4545
};
4646
}
4747

48-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
48+
#[cfg(target_os = "windows")]
4949
macro_rules! STDIN {
5050
() => {
5151
__acrt_iob_func(0)
@@ -59,7 +59,7 @@ macro_rules! STDOUT {
5959
};
6060
}
6161

62-
#[cfg(all(target_os = "windows", target_env = "gnu"))]
62+
#[cfg(target_os = "windows")]
6363
macro_rules! STDOUT {
6464
() => {
6565
__acrt_iob_func(1)

0 commit comments

Comments
 (0)