From b3e41a2924bb60e0a308bd2d35c8b9c0126a7249 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Thu, 5 Jul 2018 02:32:15 +0200 Subject: ir: Don't assume wchar is 2 bytes. Fixes #1345 --- bindgen-integration/cpp/Test.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bindgen-integration/cpp/Test.h') diff --git a/bindgen-integration/cpp/Test.h b/bindgen-integration/cpp/Test.h index e09c9ee7..8b9ad8d5 100644 --- a/bindgen-integration/cpp/Test.h +++ b/bindgen-integration/cpp/Test.h @@ -2,6 +2,8 @@ #define TESTMACRO +#include + enum { MY_ANNOYING_MACRO = #define MY_ANNOYING_MACRO 1 @@ -172,3 +174,7 @@ struct AutoRestoreBool { AutoRestoreBool(bool*); ~AutoRestoreBool(); }; + +struct WithWChar { + wchar_t foo[30]; +}; -- cgit v1.2.3