Skip to content

cmake: set _WIN32_WINNT for Windows 7 API#15891

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

cmake: set _WIN32_WINNT for Windows 7 API#15891
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:issue_15886

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Nov 11, 2019

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
Copy link
Copy Markdown
Member Author

alalek commented Nov 12, 2019

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
Copy link
Copy Markdown
Member Author

alalek commented Nov 12, 2019

👍

@opencv-pushbot opencv-pushbot merged commit af92a51 into opencv:3.4 Nov 12, 2019
@alalek alalek mentioned this pull request Nov 17, 2019
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