From 06062bcbdb759cf643d7477709a7c7c49ce07d0f Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 23 Aug 2024 11:48:45 +0200 Subject: [PATCH] Default cpp_compat to true --- docs.md | 4 ++-- src/bindgen/config.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs.md b/docs.md index c8ce9f4f2..359a1b9c8 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 31316503d..9373e407e 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,