Skip to content

Commit

Permalink
Initialize new TargetC::bitFieldStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Sep 7, 2021
1 parent 8fef7e1 commit 43dd834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gen/target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ void Target::_init(const Param &params) {
c.longsize = (ptrsize == 8) && !isMSVC ? 8 : 4;
c.long_doublesize = realsize;
c.wchar_tsize = triple.isOSWindows() ? 2 : 4;
c.bitFieldStyle =
isMSVC ? TargetC::BitFieldStyle::MS : TargetC::BitFieldStyle::Gcc_Clang;

cpp.reverseOverloads = isMSVC; // according to DMD, only for MSVC++
cpp.exceptions = true;
Expand Down

0 comments on commit 43dd834

Please sign in to comment.