diff --git a/build.rs b/build.rs index 094b34fa..b1d62804 100644 --- a/build.rs +++ b/build.rs @@ -475,7 +475,7 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { // Tell cargo to invalidate the built crate whenever any of the // included header files changed. .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())); - + // Use enum-definition of `SEXPTYPE`, as it is available and compatible bindgen_builder = bindgen_builder.clang_arg("-Denum_SEXPTYPE");