Skip to content

Commit aaa7f1a

Browse files
KyleMayesYamakaky
authored andcommitted
Disable blocks on OS X (rust-lang#380)
1 parent 8e87a4d commit aaa7f1a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changelog.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
7-
7+
### Fixed
8+
- Fix handling of blocks in OS X headers
89

910
## [0.19.0] - 2016-07-17
1011
### Breaking

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ impl Default for BindgenOptions {
213213
args.push("-idirafter".to_owned());
214214
args.push(dir.to_str().unwrap().to_owned());
215215
}
216+
if cfg!(target_os="macos") {
217+
args.push("-U__BLOCKS__".to_owned());
218+
}
216219
BindgenOptions {
217220
match_pat: Vec::new(),
218221
builtins: false,

0 commit comments

Comments
 (0)