Skip to content

cmake: set _WIN32_WINNT for Windows 7 API - #15891

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:issue_15886
Nov 12, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:issue_15886

Conversation

@alalek

@alalek alalek commented Nov 11, 2019 •

Copy link
Copy Markdown
Member

resolves #15886

build_shared:Custom Win=OFF
build_examples:Custom Win=OFF

@asmorkalov

Copy link
Copy Markdown
Contributor

@alalek How does Windows version definition solve the issue?

@alalek

alalek commented Nov 12, 2019 •

Copy link
Copy Markdown
Member Author

This macro activates code from this patch: #15812 (there is patch note: "In order to use Fls-functions need to define _WIN32_WINNT to 0x0600 or above.")

This macro is not added by CMake as default.
Windows SDK defines to 0x400 by default (checked with MSVS 2017).

Validated:

@asmorkalov

Copy link
Copy Markdown
Contributor

Thanks for clarification.

@alalek

alalek commented Nov 12, 2019

Copy link
Copy Markdown
Member Author

👍

@opencv-pushbot
opencv-pushbot merged commit af92a51 into opencv:3.4 Nov 12, 2019
@alalek alalek mentioned this pull request Nov 17, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants