diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-07-06 05:01:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 05:01:48 -0400 |
commit | 6a480ffeb8d30a2ea58dc7e605a0274ca29e28cb (patch) | |
tree | 767f3830c0a63fe0844ea293c7fcddb37c70d477 /bindgen-integration/cpp/Test.h | |
parent | c197acf847c4ea6012061c1246668514059c34ae (diff) | |
parent | b3e41a2924bb60e0a308bd2d35c8b9c0126a7249 (diff) |
Auto merge of #1346 - emilio:wchar, r=fitzgen
ir: Don't assume wchar is 2 bytes.
Fixes #1345
Diffstat (limited to 'bindgen-integration/cpp/Test.h')
-rw-r--r-- | bindgen-integration/cpp/Test.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <cwchar> + enum { MY_ANNOYING_MACRO = #define MY_ANNOYING_MACRO 1 @@ -172,3 +174,7 @@ struct AutoRestoreBool { AutoRestoreBool(bool*); ~AutoRestoreBool(); }; + +struct WithWChar { + wchar_t foo[30]; +}; |