Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion druntime/src/core/sys/windows/commctrl.d
Original file line number Diff line number Diff line change
Expand Up @@ -2196,7 +2196,7 @@ enum {
DTM_GETMONTHCAL = 0x1008,
DTM_SETMCFONT = 0x1009,
DTM_GETMCFONT = 0x100a,
DTM_SETFORMATW = 0x1050
DTM_SETFORMATW = 0x1032

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the original is defined as DTM_FIRST + 50 just write that so that it is a direct translation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there code in druntime that generates core.sys.windows.* from MinGW? Also, is that MinGW code in this repository?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC the mingw headers were converted to D more or less manually. Ancient mingw versions contain this bug, but also were formatted like this, while newer (fixed) versions use expressions similar to the SDK. So I think using the old style should be ok.

}

static if (_WIN32_WINNT >= 0x600) {
Expand Down
Loading