diff --git a/docs.md b/docs.md index c8ce9f4f..359a1b9c 100644 --- a/docs.md +++ b/docs.md @@ -501,8 +501,8 @@ no_includes = false # # If the language is not C this option won't have any effect. # -# default: false -cpp_compat = false +# default: true +cpp_compat = true # A list of lines to add verbatim after the includes block after_includes = "#define VERSION 1" diff --git a/src/bindgen/config.rs b/src/bindgen/config.rs index 31316503..9373e407 100644 --- a/src/bindgen/config.rs +++ b/src/bindgen/config.rs @@ -1051,7 +1051,7 @@ impl Default for Config { tab_width: 2, line_endings: LineEndingStyle::default(), language: Language::Cxx, - cpp_compat: false, + cpp_compat: true, style: Style::default(), usize_is_size_t: false, sort_by: SortKey::None,