Skip to content

Commit ea4ac3b

Browse files
committed
Remove duplicate blocklist_item entries for FP_ constants in build.rs
1 parent 3f06b5f commit ea4ac3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ fn main() {
3434
.header("./vendor/mruby-compiler2/include/mrc_codedump.h")
3535
.clang_arg("-I./vendor/mruby-compiler2/include")
3636
.clang_arg("-I./vendor/mruby-compiler2/lib/prism/include")
37+
.blocklist_item("FP_NAN")
38+
.blocklist_item("FP_INFINITE")
39+
.blocklist_item("FP_ZERO")
40+
.blocklist_item("FP_SUBNORMAL")
41+
.blocklist_item("FP_NORMAL")
3742
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3843
.generate()
3944
.expect("Unable to generate bindings");

src/bindings.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,11 +807,6 @@ pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0";
807807
pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0";
808808
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260100;
809809
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
810-
pub const FP_NAN: u32 = 1;
811-
pub const FP_INFINITE: u32 = 2;
812-
pub const FP_ZERO: u32 = 3;
813-
pub const FP_NORMAL: u32 = 4;
814-
pub const FP_SUBNORMAL: u32 = 5;
815810
pub const FP_SUPERNORMAL: u32 = 6;
816811
pub const FP_FAST_FMA: u32 = 1;
817812
pub const FP_FAST_FMAF: u32 = 1;

0 commit comments

Comments
 (0)